mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
gl: Use gst_object_ref_sink() for gl{filter,mixer,src}bin too
This commit is contained in:
parent
c1b43742bf
commit
e8a97877b4
3 changed files with 9 additions and 3 deletions
|
@ -222,8 +222,10 @@ gst_gl_filter_bin_set_property (GObject * object, guint prop_id,
|
|||
if (self->filter)
|
||||
gst_bin_remove (GST_BIN (self), self->filter);
|
||||
self->filter = filter;
|
||||
if (filter)
|
||||
if (filter) {
|
||||
gst_object_ref_sink (filter);
|
||||
_connect_filter_element (self);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -396,8 +396,10 @@ gst_gl_mixer_bin_set_property (GObject * object,
|
|||
/* FIXME: deal with replacing a mixer */
|
||||
g_return_if_fail (!self->mixer || (self->mixer == mixer));
|
||||
self->mixer = mixer;
|
||||
if (mixer)
|
||||
if (mixer) {
|
||||
gst_object_ref_sink (mixer);
|
||||
_connect_mixer_element (self);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -191,8 +191,10 @@ gst_gl_src_bin_set_property (GObject * object, guint prop_id,
|
|||
if (self->src)
|
||||
gst_bin_remove (GST_BIN (self), self->src);
|
||||
self->src = src;
|
||||
if (src)
|
||||
if (src) {
|
||||
gst_object_ref_sink (src);
|
||||
_connect_src_element (self);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue