mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
playbin: Reset suburi also when receiving an error message from the sub uridecodebin
http://bugzilla.gnome.org/show_bug.cgi?id=751118
This commit is contained in:
parent
bcc9021071
commit
ab79e50510
1 changed files with 5 additions and 0 deletions
|
@ -2987,6 +2987,11 @@ gst_play_bin_handle_message (GstBin * bin, GstMessage * msg)
|
||||||
gst_bin_remove (bin, group->suburidecodebin);
|
gst_bin_remove (bin, group->suburidecodebin);
|
||||||
gst_element_set_locked_state (group->suburidecodebin, FALSE);
|
gst_element_set_locked_state (group->suburidecodebin, FALSE);
|
||||||
|
|
||||||
|
GST_SOURCE_GROUP_LOCK (group);
|
||||||
|
g_free (group->suburi);
|
||||||
|
group->suburi = NULL;
|
||||||
|
GST_SOURCE_GROUP_UNLOCK (group);
|
||||||
|
|
||||||
if (group->sub_pending) {
|
if (group->sub_pending) {
|
||||||
group->sub_pending = FALSE;
|
group->sub_pending = FALSE;
|
||||||
no_more_pads_cb (NULL, group);
|
no_more_pads_cb (NULL, group);
|
||||||
|
|
Loading…
Reference in a new issue