From 1dda9777c4d652f0c32117402dece958c9d9a271 Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Mon, 26 Mar 2018 16:49:20 +0900 Subject: [PATCH] [ACR-1185][2nd] Change API naming Change-Id: Ia0a5b3c0507ce5c16084a10fe02afaedc2acb9a5 --- include/player.h | 6 +++--- src/player.c | 8 ++++---- test/player_test.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/player.h b/include/player.h index b154f7d..5b02682 100644 --- a/include/player.h +++ b/include/player.h @@ -2279,7 +2279,7 @@ int player_360_is_content_spherical(player_h player, bool *is_spherical); * @details In case the media content is spherical, display mode can be selected by this function. * @since_tizen 5.0 * @param[in] player The handle to the media player - * @param[in] enable The 360 video display status: @c true = display with 360 video mode, + * @param[in] enabled The 360 video display status: @c true = display with 360 video mode, @c false = display with full panorama mode. The default value is @c true. * @return @c 0 on success, * otherwise a negative error value @@ -2291,7 +2291,7 @@ int player_360_is_content_spherical(player_h player, bool *is_spherical); * @pre The player state must be one of #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED. * @see player_360_is_enabled() */ -int player_360_set_enabled(player_h player, bool enable); +int player_360_set_enabled(player_h player, bool enabled); /** * @brief Gets the 360 video display mode. @@ -2308,7 +2308,7 @@ int player_360_set_enabled(player_h player, bool enable); * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation * @retval #PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE Unsupported feature * @pre The player state must be one of #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED. - * @see player_360_set_enable() + * @see player_360_set_enabled() */ int player_360_is_enabled(player_h player, bool *enabled); diff --git a/src/player.c b/src/player.c index 809be61..016ca0c 100644 --- a/src/player.c +++ b/src/player.c @@ -4512,17 +4512,17 @@ int player_360_is_content_spherical(player_h player, bool *is_spherical) return ret; } -int player_360_set_enable(player_h player, bool enable) +int player_360_set_enabled(player_h player, bool enabled) { PLAYER_FEATURE_CHECK(PLAYER_FEATURE_OPENGL); PLAYER_INSTANCE_CHECK(player); int ret = PLAYER_ERROR_NONE; - muse_player_api_e api = MUSE_PLAYER_API_360_SET_ENABLE; + muse_player_api_e api = MUSE_PLAYER_API_360_SET_ENABLED; player_cli_s *pc = (player_cli_s *) player; char *ret_buf = NULL; - int val = (int)enable; + int val = (int)enabled; - LOGD("ENTER %d", enable); + LOGD("ENTER %d", enabled); player_msg_send1(api, pc, ret_buf, ret, INT, val); g_free(ret_buf); diff --git a/test/player_test.c b/test/player_test.c index 3826f60..73f9a15 100644 --- a/test/player_test.c +++ b/test/player_test.c @@ -1968,7 +1968,7 @@ static void video360_set_enable(bool enable) event_handler_set_dov_fov(); #endif - if (player_360_set_enable(g_player[0], enable) != PLAYER_ERROR_NONE) + if (player_360_set_enabled(g_player[0], enable) != PLAYER_ERROR_NONE) g_print("failed to %s video 360 mode\n", enable ? "enable" : "disable"); } -- 2.7.4