Skip to content
Snippets Groups Projects
Commit 0f860fb1 authored by Thibault Saunier's avatar Thibault Saunier :cactus:
Browse files

videomixer: Drop allocation query after the compositor

Working around gstreamer#310
parent d8afe611
No related branches found
No related tags found
1 merge request!71.14 backports
......@@ -232,6 +232,7 @@ static void
ges_smart_mixer_constructed (GObject * obj)
{
GstPad *pad;
GstElement *identity;
GESSmartMixer *self = GES_SMART_MIXER (obj);
gchar *cname = g_strdup_printf ("%s-compositor", GST_OBJECT_NAME (self));
......@@ -240,9 +241,15 @@ ges_smart_mixer_constructed (GObject * obj)
gst_element_factory_create (ges_get_compositor_factory (), cname);
g_free (cname);
g_object_set (self->mixer, "background", 1, NULL);
gst_bin_add (GST_BIN (self), self->mixer);
pad = gst_element_get_static_pad (self->mixer, "src");
identity = gst_element_factory_make ("identity", NULL);
g_object_set (identity, "drop-allocation", TRUE, NULL);
g_assert (identity);
gst_bin_add_many (GST_BIN (self), self->mixer, identity, NULL);
gst_element_link (self->mixer, identity);
pad = gst_element_get_static_pad (identity, "src");
self->srcpad = gst_ghost_pad_new ("src", pad);
gst_pad_set_active (self->srcpad, TRUE);
gst_object_unref (pad);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment