webrtcbin: Don't call gst_ghost_pad_construct() anymore

It's deprecated, unneeded and doesn't do anything anymore.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1360>
This commit is contained in:
Sebastian Dröge 2020-06-22 12:32:50 +03:00 committed by GStreamer Merge Bot
parent 652773de36
commit aa01e6ba22

View 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;