From 5edbf28ba3fe46d92ace282ffaaf860a3263df45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 3 Feb 2006 21:14:57 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ plugins/elements/gsttypefindelement.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 78fb72ca78..e494312c59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-03 Tim-Philipp Müller + + * 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 * docs/design/part-element-sink.txt: diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index f3bb9cf3aa..81e7dce78d 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -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],