playbin: free group->suburi on failure
authorBrijesh Singh <brijesh.ksingh@gmail.com>
Wed, 17 Jun 2015 15:20:54 +0000 (10:20 -0500)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2015 12:48:42 +0000 (14:48 +0200)
If suburidecodebin is failed to negotiate (e.g file does not exist)
then free internal suburi variable so that 'current-suburi' property
returns correct status.

https://bugzilla.gnome.org/show_bug.cgi?id=751118

gst/playback/gstplaybin2.c

index 8d3782e..01378df 100644 (file)
@@ -5313,6 +5313,8 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group, GstState target)
         group->sub_pending = FALSE;
       }
       gst_element_set_state (suburidecodebin, GST_STATE_READY);
+      g_free (group->suburi);
+      group->suburi = NULL;
       GST_SOURCE_GROUP_UNLOCK (group);
     }
   }