Commit 3bfe8fcb authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Tim-Philipp Müller

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

parent 25c554a5
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment