ghostpad: ensure we build a ghost pad ..

When we construct from a custom GType
This commit is contained in:
Mathieu Duponchelle 2018-03-01 01:12:07 +01:00
parent 60fae518b0
commit 609adc0609

View file

@ -635,6 +635,8 @@ gst_ghost_pad_new_full (const gchar * name, GstPadDirection dir,
GST_PAD_TEMPLATE_GTYPE (templ) ==
G_TYPE_NONE ? GST_TYPE_GHOST_PAD : GST_PAD_TEMPLATE_GTYPE (templ);
g_return_val_if_fail (g_type_is_a (pad_type, GST_TYPE_GHOST_PAD), NULL);
ret = g_object_new (pad_type, "name", name,
"direction", dir, "template", templ, NULL);
} else {