Skip to content
Snippets Groups Projects
Commit 609adc06 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle :frog:
Browse files

ghostpad: ensure we build a ghost pad ..

When we construct from a custom GType
parent 60fae518
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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