From c62375ab255bc3fcc2b94f36eda5b71a14a7024c Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Fri, 2 Apr 2021 17:45:46 +0900 Subject: [PATCH] webrtcbin: Make it possible to create data channel before READY state 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 --- ext/webrtc/gstwebrtcbin.c | 2 ++ packaging/gst-plugins-bad.spec | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index d559b44be..eddf6ef1a 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -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)) diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index f0d544440..34759d585 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: 7 +Release: 8 Summary: GStreamer Streaming-Media Framework Plug-Ins License: LGPL-2.0+ Group: Multimedia/Framework -- 2.34.1