glsinkbin: Use gst_object_ref_sink() for consistency with the video-sink property on playbin

This commit is contained in:
Sebastian Dröge 2015-06-11 15:17:02 +02:00 committed by Tim-Philipp Müller
parent 1a995d1676
commit 25c554a5e4

View file

@ -205,8 +205,10 @@ gst_gl_sink_bin_set_property (GObject * object, guint prop_id,
if (self->sink)
gst_bin_remove (GST_BIN (self), self->sink);
self->sink = sink;
if (sink)
if (sink) {
gst_object_ref_sink (sink);
_connect_sink_element (self);
}
break;
}
case PROP_FORCE_ASPECT_RATIO: