mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
playsink: ref_sink() any sinks that are set on playsink
Otherwise the behaviour of the properties is inconsistent.
This commit is contained in:
parent
f2bc24a5a9
commit
4c1fc76407
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ gst_play_sink_set_sink (GstPlaySink * playsink, GstPlaySinkType type,
|
||||||
if (elem) {
|
if (elem) {
|
||||||
old = *elem;
|
old = *elem;
|
||||||
if (sink)
|
if (sink)
|
||||||
gst_object_ref (sink);
|
gst_object_ref_sink (sink);
|
||||||
*elem = sink;
|
*elem = sink;
|
||||||
}
|
}
|
||||||
GST_PLAY_SINK_UNLOCK (playsink);
|
GST_PLAY_SINK_UNLOCK (playsink);
|
||||||
|
|
Loading…
Reference in a new issue