From 875e01e90ae04d2b6e389909e3e8ce79c1a410a8 Mon Sep 17 00:00:00 2001 From: François Laignel Date: Tue, 20 Apr 2021 22:35:52 +0200 Subject: Use gst_element_request_pad_simple... Instead of the deprecated gst_element_get_request_pad. Part-of: --- webrtc/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c b/webrtc/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c index 5f8076e..5047510 100644 --- a/webrtc/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c +++ b/webrtc/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c @@ -346,7 +346,7 @@ add_peer_to_pipeline (const gchar * peer_id, gboolean offer) srcpad = gst_element_get_static_pad (q, "src"); g_assert_nonnull (srcpad); - sinkpad = gst_element_get_request_pad (webrtc, "sink_%u"); + sinkpad = gst_element_request_pad_simple (webrtc, "sink_%u"); g_assert_nonnull (sinkpad); ret = gst_pad_link (srcpad, sinkpad); g_assert_cmpint (ret, ==, GST_PAD_LINK_OK); @@ -355,7 +355,7 @@ add_peer_to_pipeline (const gchar * peer_id, gboolean offer) tee = gst_bin_get_by_name (GST_BIN (pipeline), "audiotee"); g_assert_nonnull (tee); - srcpad = gst_element_get_request_pad (tee, "src_%u"); + srcpad = gst_element_request_pad_simple (tee, "src_%u"); g_assert_nonnull (srcpad); gst_object_unref (tee); sinkpad = gst_element_get_static_pad (q, "sink"); -- cgit v1.2.3