Fix build error at emul 28/258928/5
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 28 May 2021 02:37:22 +0000 (11:37 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Tue, 1 Jun 2021 23:22:22 +0000 (23:22 +0000)
[Version] 0.1.176
[Issue Type] Improvement

Change-Id: I516cbe551b8af0a6c1777596b2594c62770d11e6

packaging/capi-media-webrtc.spec
test/webrtc_test.c

index 80dd24a48d828520583bd3a6a75f908f6c31d79e..7c07207fc78858a791be58b943bf5a6f756e3bf0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.1.175
+Version:    0.1.176
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 518cad3a8f1724b39c6a74e53bdead234a12c668..95cd0795e3e0482f47796158fe9a1654fbbd326e 100644 (file)
@@ -811,7 +811,7 @@ static void _webrtc_data_channel_send_file(int index, const char *file_path)
 
                /* NOTE that logic regarding sending file size and name before sending data may differ from application implementations.
                 * Here we use two magic string - 'expected name:' and 'expected size:' */
-               expected_size = g_strdup_printf("expected size:%llu", st.st_size);
+               expected_size = g_strdup_printf("expected size:%llu", (unsigned long long)st.st_size);
                expected_name = g_strdup_printf("expected name:%s", basename((char *)file_path));
 
                ret = webrtc_data_channel_send_string(g_conns[index].channels[i], expected_size);
@@ -832,7 +832,7 @@ static void _webrtc_data_channel_send_file(int index, const char *file_path)
                sum_size = 0;
                while((read_size = read(fd, buffer, BUFFER_SIZE)) > 0) {
                        sum_size += read_size;
-                       g_print("[%zd / %llu]bytes is read", sum_size, st.st_size);
+                       g_print("[%zd / %llu]bytes is read", sum_size, (unsigned long long)st.st_size);
 
                        ret = webrtc_data_channel_send_bytes(g_conns[index].channels[i], buffer, (unsigned int)read_size);
                        if (ret != WEBRTC_ERROR_NONE)