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:
Sebastian Dröge 2015-06-22 14:51:07 +02:00
parent bcc9021071
commit ab79e50510

View file

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