From 609adc06095f54c426ae3ad8879510610355c21c Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 1 Mar 2018 01:12:07 +0100 Subject: [PATCH] ghostpad: ensure we build a ghost pad .. When we construct from a custom GType --- gst/gstghostpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c index dd53122..90cae38 100644 --- a/gst/gstghostpad.c +++ b/gst/gstghostpad.c @@ -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 { -- 2.7.4