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 78fb72ca78be0c5aad222fcb26f569b5e7e2dd05..e494312c599d6c07005b68d5c66a093f0b0846a8 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 f3bb9cf3aa48e4828e74ca3d2ff1f3be942dcfb3..81e7dce78def5f04fa83cbc153ada0a5455ec813 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],