From: Sangchul Lee Date: Fri, 2 Apr 2021 08:45:46 +0000 (+0900) Subject: webrtcbin: Make it possible to create data channel before READY state X-Git-Tag: submit/tizen/20210415.043549^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F256742%2F2;p=platform%2Fupstream%2Fgst-plugins-bad.git 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 --- 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