mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
ghostpad: ensure we build a ghost pad ..
When we construct from a custom GType
This commit is contained in:
parent
60fae518b0
commit
609adc0609
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue