From: Sangchul Lee Date: Thu, 3 Feb 2022 04:52:14 +0000 (+0900) Subject: webrtc_source: Use gst_element_request_pad_simple() X-Git-Tag: submit/tizen/20220216.051033~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92ed1800ed6004361421dff08612a5df085c16c9;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_source: Use gst_element_request_pad_simple() gst_element_get_request_pad() is deprecated since GStreamer 1.19.1. [Version] 0.3.54 [Issue Type] Update Change-Id: I9a81e2d80a036d070d4ca3c00da511beac1e1dd4 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 062e3b71..e3b8da97 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 0.3.53 +Version: 0.3.54 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_source.c b/src/webrtc_source.c index 7dcb701f..b5b028db 100644 --- a/src/webrtc_source.c +++ b/src/webrtc_source.c @@ -2734,7 +2734,7 @@ static int __link_source_with_webrtcbin(webrtc_gst_slot_s *source, GstElement *w RET_VAL_IF(source == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "source is NULL"); RET_VAL_IF(webrtcbin == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtcbin is NULL"); - if (!(sinkpad = gst_element_get_request_pad(webrtcbin, "sink_%u"))) { + if (!(sinkpad = gst_element_request_pad_simple(webrtcbin, "sink_%u"))) { LOG_ERROR("failed to gst_element_get_request_pad()"); return WEBRTC_ERROR_INVALID_OPERATION; }