Fix SVACE defects (SIGN_EXTENSION) 84/296884/1 accepted/tizen/unified/20230808.170153
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 7 Aug 2023 05:50:21 +0000 (14:50 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 7 Aug 2023 05:54:29 +0000 (14:54 +0900)
[Version] 0.4.17
[Issue Type] SVACE

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

index aecd121c813c66084f1124af496b31206687348f..2bb2af1784f3ef32a742513fe81cad9ddc8ac76b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.4.16
+Version:    0.4.17
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 10c39a12efebc3e80be50a66faf32b7f888e25cb..ef246ad9bd24fa254a2a9fe99ca0cc77d370fbe2 100644 (file)
@@ -257,7 +257,7 @@ static gchar *__make_ice_candidate_message(guint mlineindex, gchar *candidate)
 
        ice = json_object_new();
        json_object_set_string_member(ice, "candidate", candidate);
-       json_object_set_int_member(ice, "sdpMLineIndex", mlineindex);
+       json_object_set_int_member(ice, "sdpMLineIndex", (gint64)mlineindex);
 
        msg = json_object_new();
        json_object_set_object_member(msg, "ice", ice);
index 2d80bb7783e84b296f382661ed614e915fcacdeb..807e3057419087bba4200b3a899b38b0a0b6ba19 100644 (file)
@@ -84,7 +84,7 @@ void *_get_unused_tbm_bo(webrtc_tbm_s *tbm, unsigned int timeout_sec)
 {
        GList *l;
        gboolean ret = TRUE;
-       gint64 end_time = g_get_monotonic_time() + timeout_sec * G_TIME_SPAN_SECOND;
+       gint64 end_time = g_get_monotonic_time() + (gint64)timeout_sec * G_TIME_SPAN_SECOND;
 
        RET_VAL_IF(tbm == NULL, NULL, "tbm is NULL");
 
@@ -178,4 +178,4 @@ void _release_tbm(webrtc_tbm_s *tbm)
 
        g_free(tbm);
 }
-//LCOV_EXCL_STOP
\ No newline at end of file
+//LCOV_EXCL_STOP