plugins/elements/gsttypefindelement.c: Post TYPE_NOT_FOUND error message when typefinding is unsuccessful in the acti...

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.
This commit is contained in:
Tim-Philipp Müller 2006-02-03 21:14:57 +00:00
parent b423b77a9e
commit 5edbf28ba3
2 changed files with 10 additions and 1 deletions

View file

@ -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:

View 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],