From: Seungbae Shin Date: Fri, 18 Aug 2023 11:34:45 +0000 (+0900) Subject: Fix GlobalVariable violations X-Git-Tag: accepted/tizen/unified/20230822.043332^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F297461%2F2;p=platform%2Fcore%2Fapi%2Fmediatool.git Fix GlobalVariable violations SAM Score: 4.21 -> 4.74 GV: 1.85 -> 5 + remove cmake minimum version warning [Version] 0.1.59 [Issue Type] SAM Change-Id: I6432e38397e1505106145c94d144ae6179923179 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 37f7c9c..2379d48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) SET(fw_name "capi-media-tool") PROJECT(${fw_name}) diff --git a/packaging/capi-media-tool.spec b/packaging/capi-media-tool.spec index 718760c..76ff104 100644 --- a/packaging/capi-media-tool.spec +++ b/packaging/capi-media-tool.spec @@ -1,6 +1,6 @@ Name: capi-media-tool Summary: A Core API media tool library in Tizen Native API -Version: 0.1.58 +Version: 0.1.59 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9efe862..a4c079e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) SET(fw_test "${fw_name}-test") INCLUDE_DIRECTORIES(../include) diff --git a/test/media_packet_test.c b/test/media_packet_test.c index a1d3497..62ad406 100644 --- a/test/media_packet_test.c +++ b/test/media_packet_test.c @@ -45,20 +45,20 @@ enum { CURRENT_STATUS_FORMAT_SET_TEXT_TYPE, }; -char g_uri[MAX_STRING_LEN]; -int g_menu_state = CURRENT_STATUS_MAINMENU; -int g_handle_num = 1; +static char g_uri[MAX_STRING_LEN]; +static int g_menu_state = CURRENT_STATUS_MAINMENU; +static int g_handle_num = 1; static media_packet_h g_media_packet[MAX_HANDLE] = {0, }; -media_format_h g_media_format[MEDIA_FORMAT_MAX_HANDLE] = {0, }; +static media_format_h g_media_format[MEDIA_FORMAT_MAX_HANDLE] = {0, }; -int media_format_idx = -1; -bool is_only_created_handle; -bool is_excute_create; +static int media_format_idx = -1; +static bool is_only_created_handle; +static bool is_excute_create; -unsigned char codec_data[0x04] = {0x00, 0x01, 0x02, 0x03}; +static unsigned char codec_data[0x04] = {0x00, 0x01, 0x02, 0x03}; -unsigned int codec_data_size = 4; -unsigned char *codec_data_ptr = codec_data; +static unsigned int codec_data_size = 4; +static unsigned char *codec_data_ptr = codec_data; static void display_sub_basic(); /***********************************************/