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:
a2ebeb8
)
playsink: Don't set sink to NULL if a new one is set while the old one is still in use
author
Sebastian Dröge
<slomo@circular-chaos.org>
Wed, 14 Aug 2013 13:43:23 +0000
(15:43 +0200)
committer
Sebastian Dröge
<slomo@circular-chaos.org>
Wed, 14 Aug 2013 13:43:53 +0000
(15:43 +0200)
gst/playback/gstplaysink.c
patch
|
blob
|
history
diff --git
a/gst/playback/gstplaysink.c
b/gst/playback/gstplaysink.c
index 8c025a45723c1813b7c8d8ae1f8ed4c6ae08d2fe..aa44feef671b95e4e8a5a0145fd45bcd8a47b17a 100644
(file)
--- a/
gst/playback/gstplaysink.c
+++ b/
gst/playback/gstplaysink.c
@@
-842,7
+842,8
@@
gst_play_sink_set_sink (GstPlaySink * playsink, GstPlaySinkType type,
GST_PLAY_SINK_UNLOCK (playsink);
if (old) {
- if (old != sink)
+ /* Set the old sink to NULL if it is not used any longer */
+ if (old != sink && !GST_OBJECT_PARENT (old))
gst_element_set_state (old, GST_STATE_NULL);
gst_object_unref (old);
}