Don't call gst_ghost_pad_construct() anymore
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2020 09:32:03 +0000 (12:32 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 22 Jun 2020 16:11:28 +0000 (16:11 +0000)
It's deprecated, unneeded and doesn't do anything anymore.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/717>

ext/gl/gstglvideomixer.c
gst/playback/gstdecodebin2.c
gst/playback/gstparsebin.c

index 58142d5..580598c 100644 (file)
@@ -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, \
index 65fdd24..aa0ec50 100644 (file)
@@ -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);
index 825a821..4f9f8b6 100644 (file)
@@ -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);