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.
This commit is contained in:
Sebastian Dröge 2009-08-13 17:42:07 +02:00
parent 504f8dc9c7
commit a6b1e0b645

View file

@ -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);
}