From 504f8dc9c7f60d1c1e9a3a15e21d62bd10336f3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 13 Aug 2009 15:48:00 +0200 Subject: [PATCH] uridecodebin: Post a missing plugin message additional to the error message on unknown types Fixes bug #591677. --- gst/playback/gsturidecodebin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index 7462ba6..b5aa0d5 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -32,6 +32,8 @@ #include #include +#include + #include "gstfactorylists.h" #include "gstplay-marshal.h" #include "gstplay-enum.h" @@ -619,8 +621,12 @@ static void unknown_type_cb (GstElement * element, GstPad * pad, GstCaps * caps, GstURIDecodeBin * decoder) { + GstMessage *msg; gchar *capsstr; + msg = gst_missing_decoder_message_new (GST_ELEMENT_CAST (decoder), caps); + gst_element_post_message (GST_ELEMENT_CAST (decoder), msg); + capsstr = gst_caps_to_string (caps); GST_ELEMENT_WARNING (decoder, STREAM, WRONG_TYPE, (_("No decoder available for type \'%s\'."), capsstr), (NULL)); -- 2.7.4