From 7828c889f7747bd840b19eb5b2880c5b982423a9 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Tue, 24 Aug 2021 16:49:13 +0900 Subject: [PATCH] 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 --- ext/webrtc/gstwebrtcbin.c | 3 +++ packaging/gst-plugins-bad.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index a3b0871..019ca59 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 34eaa58..cb280f5 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 -- 2.7.4