summaryrefslogtreecommitdiff
path: root/ext/gl
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-06-11 15:17:02 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-06-11 15:17:55 +0200
commitc1b43742bf069e92f11150fc1a049677a3e2d201 (patch)
treeef3f4cec7df72574650fb2a3d861f9c3f81e9376 /ext/gl
parent59e298a6fbe29e4ec58960ece30c1789e09af8d0 (diff)
downloadgstreamer-plugins-bad-c1b43742bf069e92f11150fc1a049677a3e2d201.tar.gz
glsinkbin: Use gst_object_ref_sink() for consistency with the video-sink property on playbin
Diffstat (limited to 'ext/gl')
-rw-r--r--ext/gl/gstglsinkbin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/gl/gstglsinkbin.c b/ext/gl/gstglsinkbin.c
index 1c9649a60..e3aa283d2 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: