diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index 58142d5178..580598c17e 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -346,10 +346,6 @@ _create_video_mixer_input (GstGLMixerBin * self, GstPad * mixer_pad) GST_OBJECT_NAME (mixer_pad), "direction", GST_PAD_DIRECTION (mixer_pad), NULL); - if (!gst_ghost_pad_construct (GST_GHOST_PAD (input))) { - gst_object_unref (input); - return NULL; - } #define ADD_BINDING(obj,ref,prop) \ gst_object_add_control_binding (GST_OBJECT (obj), \ gst_proxy_control_binding_new (GST_OBJECT (obj), prop, \ diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 65fdd243a7..aa0ec50351 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -5223,7 +5223,6 @@ gst_decode_pad_new (GstDecodeBin * dbin, GstDecodeChain * chain) dpad = g_object_new (GST_TYPE_DECODE_PAD, "direction", GST_PAD_SRC, "template", pad_tmpl, NULL); - gst_ghost_pad_construct (GST_GHOST_PAD_CAST (dpad)); dpad->chain = chain; dpad->dbin = dbin; gst_object_unref (pad_tmpl); diff --git a/gst/playback/gstparsebin.c b/gst/playback/gstparsebin.c index 825a821c46..4f9f8b6bad 100644 --- a/gst/playback/gstparsebin.c +++ b/gst/playback/gstparsebin.c @@ -4201,7 +4201,6 @@ gst_parse_pad_new (GstParseBin * parsebin, GstParseChain * chain) parsepad = g_object_new (GST_TYPE_PARSE_PAD, "direction", GST_PAD_SRC, "template", pad_tmpl, NULL); - gst_ghost_pad_construct (GST_GHOST_PAD_CAST (parsepad)); parsepad->chain = chain; parsepad->parsebin = parsebin; gst_object_unref (pad_tmpl);