From a6b1e0b6450ee80ecf263a398432d95c812d6952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 13 Aug 2009 17:42:07 +0200 Subject: [PATCH] uridecodebin: Post a correct error message for unknown types Before we had STREAM/WRONG_TYPE but it's really CORE/MISSING_PLUGIN because a plugin is missing and nothing else is wrong. Also make it an error instead of a warning. Really fixes bug #591677. --- gst/playback/gsturidecodebin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index b5aa0d54b0..77d20fcf72 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -628,7 +628,7 @@ unknown_type_cb (GstElement * element, GstPad * pad, GstCaps * caps, gst_element_post_message (GST_ELEMENT_CAST (decoder), msg); capsstr = gst_caps_to_string (caps); - GST_ELEMENT_WARNING (decoder, STREAM, WRONG_TYPE, + GST_ELEMENT_ERROR (decoder, CORE, MISSING_PLUGIN, (_("No decoder available for type \'%s\'."), capsstr), (NULL)); g_free (capsstr); }