summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2021-04-20 22:35:52 +0200
committerSebastian Dröge <slomo@coaxion.net>2021-05-05 06:17:06 +0000
commit875e01e90ae04d2b6e389909e3e8ce79c1a410a8 (patch)
tree95c0e541219855f6b58557699cc49fe0038095f8
parentc89dccbf4e06046c2eddd10eff7ea40fa5317392 (diff)
Use gst_element_request_pad_simple...
Instead of the deprecated gst_element_get_request_pad. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-examples/-/merge_requests/35>
-rw-r--r--webrtc/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c4
1 files 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");