From 26ddb49339e1fa58fe5b5c63e6b464d10a2214d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Laignel?= Date: Wed, 21 Apr 2021 13:54:38 +0200 Subject: [PATCH] Use gst_element_request_pad_simple... Instead of the deprecated gst_element_get_request_pad. Part-of: --- validate/tests/check/validate/padmonitor.c | 4 ++-- validate/tests/check/validate/reporting.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/validate/tests/check/validate/padmonitor.c b/validate/tests/check/validate/padmonitor.c index db20bd0..677543f 100644 --- a/validate/tests/check/validate/padmonitor.c +++ b/validate/tests/check/validate/padmonitor.c @@ -399,10 +399,10 @@ GST_START_TEST (issue_concatenation) srcpad_monitor1 = g_object_get_data (G_OBJECT (srcpad1), "validate-monitor"); srcpad2 = gst_element_get_static_pad (src2, "src"); srcpad_monitor2 = g_object_get_data (G_OBJECT (srcpad2), "validate-monitor"); - fakemixer_sink1 = gst_element_get_request_pad (fakemixer, "sink_%u"); + fakemixer_sink1 = gst_element_request_pad_simple (fakemixer, "sink_%u"); fakemixer_sink_monitor1 = g_object_get_data (G_OBJECT (fakemixer_sink1), "validate-monitor"); - fakemixer_sink2 = gst_element_get_request_pad (fakemixer, "sink_%u"); + fakemixer_sink2 = gst_element_request_pad_simple (fakemixer, "sink_%u"); fakemixer_sink_monitor2 = g_object_get_data (G_OBJECT (fakemixer_sink2), "validate-monitor"); sinkpad = gst_element_get_static_pad (sink, "sink"); diff --git a/validate/tests/check/validate/reporting.c b/validate/tests/check/validate/reporting.c index b20d5d7..e83f53b 100644 --- a/validate/tests/check/validate/reporting.c +++ b/validate/tests/check/validate/reporting.c @@ -156,8 +156,8 @@ _create_issues (GstValidateRunner * runner) srcpad1 = gst_element_get_static_pad (src1, "src"); srcpad2 = gst_element_get_static_pad (src2, "src"); - funnel_sink1 = gst_element_get_request_pad (fakemixer, "sink_%u"); - funnel_sink2 = gst_element_get_request_pad (fakemixer, "sink_%u"); + funnel_sink1 = gst_element_request_pad_simple (fakemixer, "sink_%u"); + funnel_sink2 = gst_element_request_pad_simple (fakemixer, "sink_%u"); sinkpad = gst_element_get_static_pad (sink, "sink"); fail_unless (gst_element_link (fakemixer, sink)); -- 2.7.4