mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-24 15:28:22 +00:00
playbin2: Post a missing element message and an error message if no uridecodebin can be found
This commit is contained in:
parent
dbf632f3fb
commit
09f972bdba
|
@ -3316,7 +3316,16 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group, GstState target)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
no_decodebin:
|
no_decodebin:
|
||||||
{
|
{
|
||||||
|
GstMessage *msg;
|
||||||
|
|
||||||
GST_SOURCE_GROUP_UNLOCK (group);
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
uridecodebin_failure:
|
uridecodebin_failure:
|
||||||
|
|
Loading…
Reference in a new issue