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

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

ext/webrtc/gstwebrtcbin.c

index 52c89f9..623b375 100644 (file)
@@ -311,11 +311,6 @@ gst_webrtc_bin_pad_new (const gchar * name, GstPadDirection direction)
 
   gst_pad_set_event_function (GST_PAD (pad), gst_webrtcbin_sink_event);
 
-  if (!gst_ghost_pad_construct (GST_GHOST_PAD (pad))) {
-    gst_object_unref (pad);
-    return NULL;
-  }
-
   GST_DEBUG_OBJECT (pad, "new visible pad with direction %s",
       direction == GST_PAD_SRC ? "src" : "sink");
   return pad;