The @pre command with the statement as below is added to the doxygen.
- @pre webrtc_ice_candidate_cb() must be set by calling
webrtc_set_ice_candidate_cb().
This condition is added because both offer and answer sides should
send ICE candidates after setting local description inevitably.
[Version] 0.1.32
[Issue Type] Improvement
Change-Id: Ic190e4924d3ef84a2170e364f78e56da7eced2aa
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
* @retval #WEBRTC_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WEBRTC_ERROR_INVALID_OPERATION Invalid operation
* @retval #WEBRTC_ERROR_INVALID_STATE Invalid state
+ * @pre webrtc_ice_candidate_cb() must be set by calling webrtc_set_ice_candidate_cb().
* @pre @a webrtc state must be set to #WEBRTC_STATE_IDLE.
* @post @a webrtc state will be #WEBRTC_STATE_NEGOTIATING.
* @see webrtc_create()
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 0.1.31
+Version: 0.1.32
Release: 0
Group: Multimedia/API
License: Apache-2.0
g_mutex_lock(&_webrtc->mutex);
+ RET_VAL_WITH_UNLOCK_IF(_webrtc->ice_candidate_cb.callback == NULL, WEBRTC_ERROR_INVALID_OPERATION, &_webrtc->mutex, "the ice candidate callback should be set");
RET_VAL_WITH_UNLOCK_IF(_webrtc->state != WEBRTC_STATE_IDLE, WEBRTC_ERROR_INVALID_STATE, &_webrtc->mutex, "the state should be IDLE");
RET_VAL_WITH_UNLOCK_IF(_webrtc->gst.webrtcbin == NULL, WEBRTC_ERROR_INVALID_OPERATION, &_webrtc->mutex, "webrtcbin is NULL");