projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5dcce9
)
playbin: free group->suburi on failure
author
Brijesh Singh
<brijesh.ksingh@gmail.com>
Wed, 17 Jun 2015 15:20:54 +0000
(10:20 -0500)
committer
Sebastian 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
patch
|
blob
|
history
diff --git
a/gst/playback/gstplaybin2.c
b/gst/playback/gstplaybin2.c
index 8d3782e1d47739de64a46b203f325021a0929d07..01378df3b25e2128099bf3b52d407a02559ef1e3 100644
(file)
--- 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);
}
}