From: Sangchul Lee Date: Fri, 1 Jul 2022 05:51:59 +0000 (+0900) Subject: webrtcbin: Do not decrease max_sink_pad_serial when releasing pad X-Git-Tag: submit/tizen/20220704.000817^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F277148%2F1;p=platform%2Fupstream%2Fgstreamer.git webrtcbin: Do not decrease max_sink_pad_serial when releasing pad If requesting a sink pad after releasing one, there is a chance to give the same pad name which have been already used. Change-Id: I03d7b555ff4427f8efcb9ae7f76b444bb745e915 Signed-off-by: Sangchul Lee --- diff --git a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c index 2280e438bd..6013788e92 100644 --- a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c +++ b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c @@ -791,11 +791,6 @@ _remove_pad (GstWebRTCBin * webrtc, GstWebRTCBinPad * pad) _remove_pending_pad (webrtc, pad); gst_element_remove_pad (GST_ELEMENT (webrtc), GST_PAD (pad)); -#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION - GST_OBJECT_LOCK (webrtc); - webrtc->priv->max_sink_pad_serial--; - GST_OBJECT_UNLOCK (webrtc); -#endif } typedef struct