From: Sangchul Lee Date: Thu, 28 Mar 2024 08:18:34 +0000 (+0900) Subject: Remove state constraint on webrtc_create_data_channel() X-Git-Tag: accepted/tizen/unified/20240618.010058~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7bb64bbb3be7cc2cffc9488ccae8db245f328f5;p=platform%2Fcore%2Fapi%2Fwebrtc.git Remove state constraint on webrtc_create_data_channel() [Version] 1.0.2 [Issue Type] Release state constraint Change-Id: I438efbfa0225d16736cd6801d16d51f50efffe87 Signed-off-by: Sangchul Lee --- diff --git a/include/webrtc.h b/include/webrtc.h index a9cbebf7..cc19922d 100644 --- a/include/webrtc.h +++ b/include/webrtc.h @@ -2625,7 +2625,8 @@ int webrtc_unset_data_channel_cb(webrtc_h webrtc); * 'max-retransmits' of type int : The number of times data will be attempted to be transmitted without acknowledgement before dropping. The default value is -1.\n * 'protocol' of type string : The subprotocol used by this channel. The default value is NULL.\n * 'id' of type int : Override the default identifier selection of this channel. The default value is -1.\n - * 'priority' of type int : The priority to use for this channel(1:very low, 2:low, 3:medium, 4:high). The default value is 2. + * 'priority' of type int : The priority to use for this channel(1:very low, 2:low, 3:medium, 4:high). The default value is 2.\n + * #WEBRTC_ERROR_INVALID_STATE will no longer occur. (Since 9.0) * @param[in] webrtc WebRTC handle * @param[in] label Name for the channel * @param[in] options Configuration options for creating the data channel (optional, this can be NULL) @@ -2635,8 +2636,6 @@ int webrtc_unset_data_channel_cb(webrtc_h webrtc); * @retval #WEBRTC_ERROR_NONE Successful * @retval #WEBRTC_ERROR_INVALID_PARAMETER Invalid parameter * @retval #WEBRTC_ERROR_INVALID_OPERATION Invalid operation - * @retval #WEBRTC_ERROR_INVALID_STATE Invalid state - * @pre @a webrtc state must be set to #WEBRTC_STATE_IDLE. * @see webrtc_destroy_data_channel() */ int webrtc_create_data_channel(webrtc_h webrtc, const char *label, bundle *options, webrtc_data_channel_h *channel); diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index b68b69bd..3c7b3b9c 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 1.0.1 +Version: 1.0.2 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc.c b/src/webrtc.c index be08e2d3..11ba7199 100644 --- a/src/webrtc.c +++ b/src/webrtc.c @@ -1758,8 +1758,6 @@ int webrtc_create_data_channel(webrtc_h webrtc, const char *label, bundle *optio locker = g_mutex_locker_new(&_webrtc->mutex); - RET_VAL_IF(_webrtc->state != WEBRTC_STATE_IDLE, WEBRTC_ERROR_INVALID_STATE, "the state should be IDLE"); - return _create_data_channel(webrtc, label, options, (webrtc_data_channel_s **)channel); }