From 8537433f24a04423f1b77f190badfc16169add6d Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Fri, 1 Apr 2022 22:52:18 +0900 Subject: [PATCH] webrtc/datachannel: Change initial data channel state to CONNECTING It complies with http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate. Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c | 2 +- subprojects/gst-plugins-bad/gst-libs/gst/webrtc/webrtc_fwd.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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 b97a38b..6ba1905 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 e8858ac..b023584 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, -- 2.7.4