summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/directfb/dfbvideosink.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 550d84da..31cfc41a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
2006-07-31 Julien MOUTTE <julien@moutte.net>
* ext/directfb/dfbvideosink.c: (gst_dfbvideosink_change_state),
+ (gst_dfbvideosink_buffer_alloc): Post an error message.
+
+2006-07-31 Julien MOUTTE <julien@moutte.net>
+
+ * ext/directfb/dfbvideosink.c: (gst_dfbvideosink_change_state),
(gst_dfbvideosink_buffer_alloc): Don't try allocating if we are not
setup yet. Fail changing state if setup fails.
diff --git a/ext/directfb/dfbvideosink.c b/ext/directfb/dfbvideosink.c
index 8a56ecbe..e6aa8277 100644
--- a/ext/directfb/dfbvideosink.c
+++ b/ext/directfb/dfbvideosink.c
@@ -1428,6 +1428,8 @@ gst_dfbvideosink_change_state (GstElement * element, GstStateChange transition)
if (!gst_dfbvideosink_setup (dfbvideosink)) {
GST_DEBUG_OBJECT (dfbvideosink, "setup failed when changing state "
"from NULL to READY");
+ GST_ELEMENT_ERROR (dfbvideosink, RESOURCE, OPEN_WRITE,
+ (NULL), ("Failed initializing DirectFB system"));
return GST_STATE_CHANGE_FAILURE;
}
}