webrtcbin: Reset need_negotiation flag in case of READY to NULL 85/262985/1 accepted/tizen/unified/20210826.123608 submit/tizen/20210825.083902
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 24 Aug 2021 07:49:13 +0000 (16:49 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 24 Aug 2021 08:02:30 +0000 (17:02 +0900)
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 <sc11.lee@samsung.com>
ext/webrtc/gstwebrtcbin.c
packaging/gst-plugins-bad.spec

index a3b0871..019ca59 100644 (file)
@@ -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;
index 34eaa58..cb280f5 100644 (file)
@@ -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