plugins/elements/gsttypefindelement.c: Post TYPE_NOT_FOUND error message when typefin...
authorTim-Philipp Müller <tim@centricular.net>
Fri, 3 Feb 2006 21:14:57 +0000 (21:14 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 3 Feb 2006 21:14:57 +0000 (21:14 +0000)
Original commit message from CVS:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_activate):
Post TYPE_NOT_FOUND error message when typefinding
is unsuccessful in the activate function as well.

ChangeLog
plugins/elements/gsttypefindelement.c

index 78fb72c..e494312 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-03  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * plugins/elements/gsttypefindelement.c:
+       (gst_type_find_element_activate):
+         Post TYPE_NOT_FOUND error message when typefinding
+         is unsuccessful in the activate function as well.
+
 2006-02-02  Wim Taymans  <wim@fluendo.com>
 
        * docs/design/part-element-sink.txt:
index f3bb9cf..81e7dce 100644 (file)
@@ -872,8 +872,10 @@ gst_type_find_element_activate (GstPad * pad)
   gst_pad_activate_push (typefind->src, FALSE);
 
   /* 5 */
-  if (!found_caps)
+  if (!found_caps) {
+    GST_ELEMENT_ERROR (typefind, STREAM, TYPE_NOT_FOUND, (NULL), (NULL));
     return FALSE;
+  }
 
   /* 6 */
   g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],