From c1b43742bf069e92f11150fc1a049677a3e2d201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 11 Jun 2015 15:17:02 +0200 Subject: [PATCH] glsinkbin: Use gst_object_ref_sink() for consistency with the video-sink property on playbin --- ext/gl/gstglsinkbin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/gl/gstglsinkbin.c b/ext/gl/gstglsinkbin.c index 1c9649a609..e3aa283d22 100644 --- a/ext/gl/gstglsinkbin.c +++ b/ext/gl/gstglsinkbin.c @@ -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: