[v0.2.31] fix svace issue and sync param name with player api pkg 72/93072/2 accepted/tizen/common/20161020.173427 accepted/tizen/ivi/20161020.125922 accepted/tizen/mobile/20161020.125820 accepted/tizen/tv/20161020.125830 accepted/tizen/wearable/20161020.125852 submit/tizen/20161020.073422
authorEunhae Choi <eunhae1.choi@samsung.com>
Thu, 20 Oct 2016 08:03:48 +0000 (17:03 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Thu, 20 Oct 2016 08:26:07 +0000 (17:26 +0900)
Change-Id: I6d1ff2645f3ba5a438c0d7309af4a86d1ad94f0c

muse/src/muse_player.c
packaging/mmsvc-player.spec

index 41cb2d01ed5e47ba286a4b3c4819e3a51a29950d..19f8d36a93e5815deb28f2da6ce792b1f4fb9c9e 100644 (file)
@@ -932,6 +932,11 @@ int player_disp_prepare_async(muse_module_h module)
        muse_player = (muse_player_handle_s *)muse_core_ipc_get_handle(module);
 
        prepare_data = g_new(prepare_data_s, 1);
+       if (!prepare_data) {
+               ret = PLAYER_ERROR_INVALID_OPERATION;
+               goto ERROR;
+       }
+
        prepare_data->player = muse_player->player_handle;
        prepare_data->module = module;
 
@@ -939,10 +944,11 @@ int player_disp_prepare_async(muse_module_h module)
        if (ret == PLAYER_ERROR_NONE) {
                legacy_player_get_timeout_for_muse(muse_player->player_handle, &timeout);
                player_msg_return1(api, ret, module, INT, timeout);
-       } else {
-               player_msg_return(api, ret, module);
-       }
+               return ret;
+       } /* else is error */
 
+ERROR:
+       player_msg_return(api, ret, module);
        return ret;
 }
 
@@ -1817,12 +1823,12 @@ int player_disp_set_progressive_download_path(muse_module_h module)
        int ret = PLAYER_ERROR_NONE;
        muse_player_handle_s *muse_player = NULL;
        muse_player_api_e api = MUSE_PLAYER_API_SET_PROGRESSIVE_DOWNLOAD_PATH;
-       char path[MUSE_URI_MAX_LENGTH] = { 0, };
+       char dw_path[MUSE_URI_MAX_LENGTH] = { 0, };
 
        muse_player = (muse_player_handle_s *)muse_core_ipc_get_handle(module);
-       player_msg_get_string(path, muse_core_client_get_msg(module));
+       player_msg_get_string(dw_path, muse_core_client_get_msg(module));
 
-       ret = legacy_player_set_progressive_download_path(muse_player->player_handle, path);
+       ret = legacy_player_set_progressive_download_path(muse_player->player_handle, dw_path);
        player_msg_return(api, ret, module);
 
        return ret;
@@ -1959,12 +1965,12 @@ int player_disp_set_subtitle_path(muse_module_h module)
        int ret = PLAYER_ERROR_NONE;
        muse_player_handle_s *muse_player = NULL;
        muse_player_api_e api = MUSE_PLAYER_API_SET_SUBTITLE_PATH;
-       char path[MUSE_URI_MAX_LENGTH] = { 0, };
+       char subtitle_path[MUSE_URI_MAX_LENGTH] = { 0, };
 
        muse_player = (muse_player_handle_s *)muse_core_ipc_get_handle(module);
-       player_msg_get_string(path, muse_core_client_get_msg(module));
+       player_msg_get_string(subtitle_path, muse_core_client_get_msg(module));
 
-       ret = legacy_player_set_subtitle_path(muse_player->player_handle, path);
+       ret = legacy_player_set_subtitle_path(muse_player->player_handle, subtitle_path);
 
        player_msg_return(api, ret, module);
 
index a1a5a6ccaca8f48882fbed72b71e75d285cb9072..f7abf347ea241d2ee34646942f200df14cbb5f63 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.30
+Version:    0.2.31
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0