From: Brijesh Singh Date: Wed, 17 Jun 2015 15:20:54 +0000 (-0500) Subject: playbin: free group->suburi on failure X-Git-Tag: 1.6.0~183 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcc9021071e8a1b683616710affca7887ab7f9d4;p=platform%2Fupstream%2Fgst-plugins-base.git playbin: free group->suburi on failure 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 --- diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 8d3782e..01378df 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -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); } }