From: Sangchul Lee Date: Tue, 24 Aug 2021 07:49:13 +0000 (+0900) Subject: webrtcbin: Reset need_negotiation flag in case of READY to NULL X-Git-Tag: submit/tizen/20210825.083902^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7828c889f7747bd840b19eb5b2880c5b982423a9;p=platform%2Fupstream%2Fgst-plugins-bad.git webrtcbin: Reset need_negotiation flag in case of READY to NULL If the state is changed from PLAYING to NULL without releasing pad, 'on-negotiation-needed' signal is not be emitted even if the state is changed to PLAYING again without any pad changes. It fixes this issue. [Version] 1.16.2-23 [Issue Type] Improvement Change-Id: I15b6c34e590a84b6c9731e39f588078f8afaeef9 Signed-off-by: Sangchul Lee --- diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index a3b08717b..019ca59ba 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -6101,6 +6101,9 @@ gst_webrtc_bin_change_state (GstElement * element, GstStateChange transition) break; case GST_STATE_CHANGE_READY_TO_NULL: _stop_thread (webrtc); +#ifdef __TIZEN__ + webrtc->priv->need_negotiation = FALSE; +#endif break; default: break; diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index 34eaa58d2..cb280f5b7 100644 --- a/packaging/gst-plugins-bad.spec +++ b/packaging/gst-plugins-bad.spec @@ -4,7 +4,7 @@ Name: gst-plugins-bad Version: 1.16.2 -Release: 22 +Release: 23 Summary: GStreamer Streaming-Media Framework Plug-Ins License: LGPL-2.0+ Group: Multimedia/Framework