diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-07-10 14:59:03 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-07-10 14:59:03 +0000 |
commit | 089a7c72625225f34854d5f11819e470c89ee83e (patch) | |
tree | 2d5b17671ff763265de70f1f6b5e6bdcfebf58ef /gst/playback/gstdecodebin.c | |
parent | a295acae0ef5b6e21dda499a2c5e4212f9eccb29 (diff) |
gst/playback/gstdecodebin.c: Also emit 'unknown-type' signal (which should really be called unhandled-type) if we fou...
Original commit message from CVS:
* gst/playback/gstdecodebin.c: (close_pad_link):
Also emit 'unknown-type' signal (which should really be
called unhandled-type) if we found potential decoders/demuxers
in the registry but none of them worked in the end (as in the
case where the plugins don't exist any longer but are still
listed in the registry). Fixes #329798.
Diffstat (limited to 'gst/playback/gstdecodebin.c')
-rw-r--r-- | gst/playback/gstdecodebin.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/playback/gstdecodebin.c b/gst/playback/gstdecodebin.c index 086306e66..f67c4ec30 100644 --- a/gst/playback/gstdecodebin.c +++ b/gst/playback/gstdecodebin.c @@ -681,7 +681,11 @@ close_pad_link (GstElement * element, GstPad * pad, GstCaps * caps, /* no compatible elements, we cannot go on */ goto unknown_type; - try_to_link_1 (decode_bin, element, pad, to_try); + if (try_to_link_1 (decode_bin, element, pad, to_try) == NULL) { + GST_LOG_OBJECT (pad, "none of the allegedly available elements usable"); + goto unknown_type; + } + /* can free the list again now */ g_list_free (to_try); } |