Previously, READY state of webrtcbin was required to create the
data channel. Due to this condition, we raise the state to READY
right before creating a data channel. But this state change invokes
the negotiation needed callback unexpectedly.
In webrtcbin, the state limitation to create a data channel has been
removed.
: https://review.tizen.org/gerrit/#/c/platform/upstream/gst-plugins-bad/+/256742/
Therefore, this state change is also no longer necessary and removed.
[Version] 0.1.148
[Issue Type] Improvement
Change-Id: Ibefe084aaf68639f2bfb750bac1866d7445e24d8
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 0.1.147
+Version: 0.1.148
Release: 0
Group: Multimedia/API
License: Apache-2.0
RET_VAL_WITH_UNLOCK_IF(_webrtc->state != WEBRTC_STATE_IDLE, WEBRTC_ERROR_INVALID_STATE, &_webrtc->mutex, "the state should be IDLE");
- ret = _gst_pipeline_set_state(_webrtc, GST_STATE_READY);
- RET_VAL_WITH_UNLOCK_IF(ret != WEBRTC_ERROR_NONE, ret, &_webrtc->mutex, "failed to change GST state to READY");
-
ret = _create_data_channel(webrtc, label, options, (webrtc_data_channel_s **)channel);
g_mutex_unlock(&_webrtc->mutex);