webrtcbin: Do not decrease max_sink_pad_serial when releasing pad 48/277148/1 accepted/tizen/unified/20220708.132924 submit/tizen/20220704.000817 submit/tizen/20220707.012634
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 1 Jul 2022 05:51:59 +0000 (14:51 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 1 Jul 2022 06:05:05 +0000 (15:05 +0900)
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 <sc11.lee@samsung.com>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c

index 2280e438bded41ca5390f472769ee158f41fa74e..6013788e92d11ed3acb79b216e609180f8ffa9dc 100644 (file)
@@ -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