Remove state constraint on webrtc_create_data_channel() 20/308720/2
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 28 Mar 2024 08:18:34 +0000 (17:18 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 2 Apr 2024 01:53:48 +0000 (10:53 +0900)
[Version] 1.0.2
[Issue Type] Release state constraint

Change-Id: I438efbfa0225d16736cd6801d16d51f50efffe87
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/webrtc.h
packaging/capi-media-webrtc.spec
src/webrtc.c

index a9cbebf7682e9916f279c35449a71c6736242fcf..cc19922d9028d4aebf006ad97641a702c845276c 100644 (file)
@@ -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);
index b68b69bd6f3e52e404e3f423ba0f12e9a43e81d4..3c7b3b9c488db9d588984a7093bdde2f1313c5da 100644 (file)
@@ -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
index be08e2d3b533484553f207a1cd19f1117d17f6ad..11ba7199cc20b497673b394f7a1440f3f08799f2 100644 (file)
@@ -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);
 }