webrtc_private: Ensure to invoke error callback in main thread 00/292900/1
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 17 May 2023 00:20:36 +0000 (09:20 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 17 May 2023 00:20:45 +0000 (09:20 +0900)
[Version] 0.4.12
[Issue Type] Improvement

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

index 43ce6094abf5772a68ffc4c193d413300ae068d6..ea708827cabc3437a1e7655e4d17876a7beda847 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.4.11
+Version:    0.4.12
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index d2578159fdc90285a1f58997512169a245e9c4dc..0108e0d9c94ded6104a7402c96ba578976f6e041 100644 (file)
@@ -1183,8 +1183,7 @@ static void __webrtcbin_peer_connection_state_cb(GstElement *webrtcbin, GParamSp
                break;
 
        case GST_WEBRTC_PEER_CONNECTION_STATE_FAILED:
-               g_clear_pointer(&locker, g_mutex_locker_free);
-               __invoke_error_cb(webrtc, WEBRTC_ERROR_CONNECTION_FAILED);
+               _post_error_cb_in_idle(webrtc, WEBRTC_ERROR_CONNECTION_FAILED);
                break;
 
        default:
@@ -1252,7 +1251,7 @@ static void __webrtcbin_ice_connection_state_cb(GstElement *webrtcbin, GParamSpe
        __post_ice_connection_state_change_cb_in_idle(webrtc, __ice_connection_state_info[state].state);
 
        if (state == GST_WEBRTC_ICE_CONNECTION_STATE_FAILED)
-               __invoke_error_cb(webrtc, WEBRTC_ERROR_CONNECTION_FAILED);
+               _post_error_cb_in_idle(webrtc, WEBRTC_ERROR_CONNECTION_FAILED);
 }
 //LCOV_EXCL_STOP