From: Sangchul Lee Date: Fri, 15 Oct 2021 04:02:54 +0000 (+0900) Subject: webrtc_test: Maintain received ICE candidates before destroying handle X-Git-Tag: submit/tizen/20211020.012736~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6848c568fd97953a51385033f21d1d15aaf548f9;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_test: Maintain received ICE candidates before destroying handle Based on gstreamer webrtcbin, it does not gather ICE candidate again when after gathering completed until unref the bin. These ICE candidates can be used after webrtc_stop(). Missing * are added in menu for internal API. [Version] 0.2.124 [Issue Type] Improvement Change-Id: Ie43a3157315f5586bcbbec377cdab8b234c825c5 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 168b9af9..aa2c6d26 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: 0.2.123 +Version: 0.2.124 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/test/webrtc_test.c b/test/webrtc_test.c index f406582c..415d6142 100644 --- a/test/webrtc_test.c +++ b/test/webrtc_test.c @@ -1250,10 +1250,6 @@ static void _webrtc_add_ice_candidate(connection_s *conn, const gchar *candidate } g_list_foreach(conn->ice_candidates, __foreach_ice_candidate, NULL); - - g_list_free_full(conn->ice_candidates, free); - - conn->ice_candidates = NULL; } static void _webrtc_set_stun_server(int index, char *uri) @@ -4011,8 +4007,8 @@ void display_sub_basic() g_print("scs. *Set crop screen source\t"); g_print("ucs. *Unset crop screen source\n"); g_print("pa. *Set media path to file source\n"); - g_print("sfl. Set file source looping\n"); - g_print("gfl. Set file source looping\n"); + g_print("sfl. *Set file source looping\t"); + g_print("gfl. *Set file source looping\n"); g_print("sf. Set media format to media packet source\n"); g_print("dt. Set display type\t"); g_print("dm. Set display mode\t");