From: Sangchul Lee Date: Wed, 17 Nov 2021 08:08:54 +0000 (+0900) Subject: fixup! webrtcbin: Remove transceiver from array when releasing pad X-Git-Tag: accepted/tizen/unified/20211123.015846^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15f13fea63d8e1949f0c45e52894b946784400b1;hp=68f3bee3a48d7f006123f01fc10bdcc8be4dbbde;p=platform%2Fupstream%2Fgst-plugins-bad.git fixup! webrtcbin: Remove transceiver from array when releasing pad Change-Id: Idd611bc2f66adf24abc51ae0ef0b000adbe8f48c Signed-off-by: Sangchul Lee --- diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 76f6c44..1d2fe90 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -641,7 +641,9 @@ _remove_pad (GstWebRTCBin * webrtc, GstWebRTCBinPad * pad) gst_element_remove_pad (GST_ELEMENT (webrtc), GST_PAD (pad)); #ifdef __TIZEN__ + GST_OBJECT_LOCK (webrtc); webrtc->priv->max_sink_pad_serial--; + GST_OBJECT_UNLOCK (webrtc); #endif }