webrtc_test: Maintain received ICE candidates before destroying handle 30/265330/1
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 15 Oct 2021 04:02:54 +0000 (13:02 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 15 Oct 2021 04:14:46 +0000 (13:14 +0900)
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 <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
test/webrtc_test.c

index 168b9af9e64565e7ff436f994d0375b753c0043f..aa2c6d263fa765e4ffa0db4dcf8954e22ba23373 100644 (file)
@@ -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
index f406582cbb9d656b0cf0bf2d193994945eb2e9a7..415d6142c72db81f20ebdefcc7adb354a18bc037 100644 (file)
@@ -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");