playsink: ref_sink() any sinks that are set on playsink

Otherwise the behaviour of the properties is inconsistent.
This commit is contained in:
Sebastian Dröge 2013-07-10 13:21:29 +02:00
parent f2bc24a5a9
commit 4c1fc76407

View file

@ -839,7 +839,7 @@ gst_play_sink_set_sink (GstPlaySink * playsink, GstPlaySinkType type,
if (elem) {
old = *elem;
if (sink)
gst_object_ref (sink);
gst_object_ref_sink (sink);
*elem = sink;
}
GST_PLAY_SINK_UNLOCK (playsink);