[v0.3.38] apply new naming about player_set_audio_policy_info() 78/104678/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 14 Dec 2016 05:49:24 +0000 (14:49 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 14 Dec 2016 05:49:43 +0000 (14:49 +0900)
related commit
https://review.tizen.org/gerrit/#/c/104677/
https://review.tizen.org/gerrit/#/c/101703/

Change-Id: Idd5f239b869886ee220c9e4ebaf92dd40d069672
Signed-off-by: Eunhae Choi <eunhae1.choi@samsung.com>
doc/player_doc.h
include/common/player.h
include/wearable/player.h
packaging/capi-media-player.spec
src/player.c
test/player_test.c

index 684006c758f848923562bf913bb9fe6acbeb95f3..7b144f0016c47ba347fadaf49c6dd9140690faae 100755 (executable)
  *    <td>This function must be called after player_create()</td>
  * </tr>
  * <tr>
- *    <td>player_set_audio_policy_info()</td>
+ *    <td>player_set_sound_stream_info()</td>
  *    <td>IDLE</td>
  *    <td>This function must be called after player_create()</td>
  * </tr>
index 12ac3561ffcc6953ff8d8e8b868deda71ed1feac..af45268861eae011dab0e08ed1b1f4df71a5a8ce 100644 (file)
@@ -606,7 +606,7 @@ int player_set_volume(player_h player, float left, float right);
 int player_get_volume(player_h player, float *left, float *right);
 
 /**
- * @deprecated Deprecated since 3.0. Use player_set_audio_policy_info() instead.
+ * @deprecated Deprecated since 3.0. Use player_set_sound_stream_info() instead.
  * @brief Sets the player's volume type.
  * @since_tizen 2.3
  * @remarks The default sound type of the player is #SOUND_TYPE_MEDIA.
index 42c70736bc115a9ac62b406e46920976674d7c96..5b8bf55200af31e0e936f6b7207c337c396c1a39 100644 (file)
@@ -607,7 +607,7 @@ int player_set_volume(player_h player, float left, float right);
 int player_get_volume(player_h player, float *left, float *right);
 
 /**
- * @deprecated Deprecated since 3.0. Use player_set_audio_policy_info() instead.
+ * @deprecated Deprecated since 3.0. Use player_set_sound_stream_info() instead.
  * @brief Sets the player's volume type.
  * @since_tizen 2.3.1
  * @remarks The default sound type of the player is #SOUND_TYPE_MEDIA.
index 6c723d989430c62bdd83ab4e07b452805d8346fb..ba38cd374e35f6af69421a06478e4c53b2d69b9c 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.37
+Version:    0.3.38
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 785b6d4751b538f14e6bc5120348766542d4af0c..4e589cfc2df0da8dad8bd50e676bb6d5d71be0d3 100644 (file)
@@ -2050,7 +2050,7 @@ int player_set_sound_type(player_h player, sound_type_e type)
        char *ret_buf = NULL;
 
        LOGD("ENTER");
-       LOGW("DEPRECATION WARNING: player_set_sound_type() is deprecated and will be removed from next release. Use player_set_audio_policy_info() instead.");
+       LOGW("DEPRECATION WARNING: player_set_sound_type() is deprecated and will be removed from next release. Use player_set_sound_stream_info() instead.");
 
        player_msg_send1(api, pc, ret_buf, ret, INT, type);
        g_free(ret_buf);
@@ -2061,7 +2061,7 @@ int player_set_audio_policy_info(player_h player, sound_stream_info_h stream_inf
 {
        PLAYER_INSTANCE_CHECK(player);
 
-       muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_POLICY_INFO;
+       muse_player_api_e api = MUSE_PLAYER_API_SET_SOUND_STREAM_INFO;
        player_cli_s *pc = (player_cli_s *) player;
        char *ret_buf = NULL;
 
@@ -2098,7 +2098,7 @@ int player_set_sound_stream_info(player_h player, sound_stream_info_h stream_inf
 {
        PLAYER_INSTANCE_CHECK(player);
 
-       muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_POLICY_INFO;
+       muse_player_api_e api = MUSE_PLAYER_API_SET_SOUND_STREAM_INFO;
        player_cli_s *pc = (player_cli_s *) player;
        char *ret_buf = NULL;
 
@@ -2112,9 +2112,9 @@ int player_set_sound_stream_info(player_h player, sound_stream_info_h stream_inf
                                        stream_info, NATIVE_API_PLAYER, &is_available), (char *)__FUNCTION__);
 
        if (ret == PLAYER_ERROR_NONE) {
-               if (is_available == false)
+               if (is_available == false) {
                        ret = PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE;
-               else {
+               else {
                        char *stream_type = NULL;
                        int stream_index = 0;
                        ret = sound_manager_get_type_from_stream_information(stream_info, &stream_type);
index 6bd644aba4aeaf553a9969da8e052846e46963d8..f471a214c10acd99ec0088eeb28e2e177f5b443c 100644 (file)
@@ -1302,7 +1302,7 @@ static void set_sound_stream_info(int type)
                }
        }
 
-       if (player_set_audio_policy_info(g_player[0], g_stream_info_h) != PLAYER_ERROR_NONE)
+       if (player_set_sound_stream_info(g_player[0], g_stream_info_h) != PLAYER_ERROR_NONE)
                g_print("failed to set sound stream information(%p)\n", g_stream_info_h);
        else
                g_print("set stream information(%p) success", g_stream_info_h);