playbin2: Post a missing element message and an error message if no uridecodebin can be found

This commit is contained in:
Sebastian Dröge 2010-02-15 08:48:58 +01:00
parent dbf632f3fb
commit 09f972bdba

View file

@ -3316,7 +3316,16 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group, GstState target)
/* ERRORS */
no_decodebin:
{
GstMessage *msg;
GST_SOURCE_GROUP_UNLOCK (group);
msg =
gst_missing_element_message_new (GST_ELEMENT_CAST (playbin),
"uridecodebin");
gst_element_post_message (GST_ELEMENT_CAST (playbin), msg);
GST_ELEMENT_ERROR (playbin, CORE, MISSING_PLUGIN,
(_("Could not create \"uridecodebin\" element.")), (NULL));
return FALSE;
}
uridecodebin_failure: