From: Sangchul Lee Date: Fri, 1 Apr 2022 13:52:18 +0000 (+0900) Subject: webrtc/datachannel: Change initial data channel state to CONNECTING X-Git-Tag: accepted/tizen/unified/20220920.160548~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F281361%2F1;p=platform%2Fupstream%2Fgstreamer.git webrtc/datachannel: Change initial data channel state to CONNECTING It complies with http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate. Change-Id: I3cc114f435a6b6dde87e6a94b83e7419fa32e09b Part-of: --- diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c index 0e0f28c..f0567a9 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c @@ -261,7 +261,7 @@ gst_webrtc_data_channel_class_init (GstWebRTCDataChannelClass * klass) "Ready State", "The Ready state of this data channel", GST_TYPE_WEBRTC_DATA_CHANNEL_STATE, - GST_WEBRTC_DATA_CHANNEL_STATE_NEW, + GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/webrtc_fwd.h b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/webrtc_fwd.h index d181873..2a031a4 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/webrtc_fwd.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/webrtc_fwd.h @@ -351,8 +351,7 @@ typedef enum /*< underscore_name=gst_webrtc_priority_type >*/ /** * GstWebRTCDataChannelState: - * @GST_WEBRTC_DATA_CHANNEL_STATE_NEW: new - * @GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: connection + * @GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: connecting * @GST_WEBRTC_DATA_CHANNEL_STATE_OPEN: open * @GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING: closing * @GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED: closed @@ -363,8 +362,7 @@ typedef enum /*< underscore_name=gst_webrtc_priority_type >*/ */ typedef enum /*< underscore_name=gst_webrtc_data_channel_state >*/ { - GST_WEBRTC_DATA_CHANNEL_STATE_NEW, - GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING, + GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING = 1, GST_WEBRTC_DATA_CHANNEL_STATE_OPEN, GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING, GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED,