mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
glsinkbin: Use gst_object_ref_sink() for consistency with the video-sink property on playbin
This commit is contained in:
parent
1a995d1676
commit
25c554a5e4
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue