mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +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
1 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue