gl: Use gst_object_ref_sink() for gl{filter,mixer,src}bin too

This commit is contained in:
Sebastian Dröge 2015-06-11 15:22:04 +02:00
parent c1b43742bf
commit e8a97877b4
3 changed files with 9 additions and 3 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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: