playbin: Reset suburi also when receiving an error message from the sub uridecodebin
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2015 12:51:07 +0000 (14:51 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2015 12:51:07 +0000 (14:51 +0200)
http://bugzilla.gnome.org/show_bug.cgi?id=751118

gst/playback/gstplaybin2.c

index 01378df..9100da5 100644 (file)
@@ -2987,6 +2987,11 @@ gst_play_bin_handle_message (GstBin * bin, GstMessage * msg)
         gst_bin_remove (bin, group->suburidecodebin);
         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) {
           group->sub_pending = FALSE;
           no_more_pads_cb (NULL, group);