webrtcbin: Make it possible to create data channel before READY state 42/256742/2 accepted/tizen/unified/20210415.100509 submit/tizen/20210415.043549
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 2 Apr 2021 08:45:46 +0000 (17:45 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 12 Apr 2021 07:27:56 +0000 (16:27 +0900)
The condition 'webrtc->priv->is_closed' is set to TRUE when NULL state.
In Tizen, skip checking this condition to create data channel within
NULL state.

[Version] 1.16.2-8
[Profile] Common
[Issue Type] Improvement

Change-Id: I60dad04350372d6fa10dd987be92b152e9cada19
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
ext/webrtc/gstwebrtcbin.c
packaging/gst-plugins-bad.spec

index d559b44..eddf6ef 100644 (file)
@@ -4111,7 +4111,9 @@ gst_webrtc_bin_create_data_channel (GstWebRTCBin * webrtc, const gchar * label,
   g_return_val_if_fail (GST_IS_WEBRTC_BIN (webrtc), NULL);
   g_return_val_if_fail (label != NULL, NULL);
   g_return_val_if_fail (strlen (label) <= 65535, NULL);
+#ifndef __TIZEN__
   g_return_val_if_fail (webrtc->priv->is_closed != TRUE, NULL);
+#endif
 
   if (!init_params
       || !gst_structure_get_boolean (init_params, "ordered", &ordered))
index f0d5444..34759d5 100644 (file)
@@ -4,7 +4,7 @@
 
 Name:           gst-plugins-bad
 Version:        1.16.2
-Release:        7
+Release:        8
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 License:        LGPL-2.0+
 Group:          Multimedia/Framework