[0.3.102] fix svace issue 54/190354/1 accepted/tizen/5.0/unified/20181102.013151 accepted/tizen/unified/20181002.093235 submit/tizen/20181001.075439 submit/tizen_5.0/20181101.000002
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 1 Oct 2018 07:33:54 +0000 (16:33 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 1 Oct 2018 07:33:54 +0000 (16:33 +0900)
Change-Id: I574f31aa709f220fd2af9b6553970477af0f6e7d

packaging/capi-media-player.spec
src/player.c
test/player_test.c

index 9e913cc47f0dac83dc7d3ae5754621792d331db9..caa9c0a531c6b8ffe263bd688b7e032597c1026d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.101
+Version:    0.3.102
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index a28729e32fb7aaf798ad4f81e134891b83f9e672..6505597ffd509f3146a1e300560841e03f4fd745 100644 (file)
@@ -1923,7 +1923,7 @@ int player_create(player_h * player)
                        *player = (player_h) pc;
                        if (player_msg_get_type(module_addr, ret_buf, POINTER)) {
                                pc->cb_info->data_fd = muse_client_new_data_ch();
-                               if (!muse_core_fd_is_valid(pc->cb_info->data_fd)) {
+                               if ((pc->cb_info->data_fd < 0) || (!muse_core_fd_is_valid(pc->cb_info->data_fd))) {
                                        LOGE("Failed to get data_fd");
                                        ret = PLAYER_ERROR_INVALID_OPERATION;
                                        goto ERROR;
index f04f49f890403479ea3f139615d3bf14cf74c435..94f7bb8f01a6134154e42d828506d7c310467994 100644 (file)
@@ -2335,8 +2335,8 @@ void display_sub_basic()
        g_print("[subtitle] A. Set(or change) subtitle path\n");
        g_print("[subtitle] ss. Select(or change) subtitle track\n");
        g_print("[Video Capture] C. Capture \n");
-       g_print("[Video Codec] C1. Set vcodec type (1:HW, 2:SW)\t");
-       g_print("C2. Get vcodec type\n");
+       g_print("[Video Codec] C1. Set codec type (1:HW, 2:SW)\t");
+       g_print("C2. Get codec type\n");
        g_print("[next uri] su. set next uri. \t");
        g_print("gu. get next uri. \t");
        g_print("sg. set gapless. \n");
@@ -2655,7 +2655,7 @@ static void interpret(char *cmd)
        case CURRENT_STATUS_GET_TRACK_INFO:
                {
                        value1 = atoi(cmd);
-                       get_track_info(fval);
+                       get_track_info(value1);
                        reset_menu_state();
                }
                break;