[UTC][player][Non-ACR][fix build warning]
authorNAMJEONGYOON <just.nam@samsung.com>
Thu, 17 Nov 2016 01:31:38 +0000 (10:31 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Thu, 17 Nov 2016 01:31:38 +0000 (10:31 +0900)
Change-Id: I78a2f3f32d1d4ace47f582f6d315abae787e2dbc

src/utc/player/utc-media-player.c

index cd03864..0268b1e 100755 (executable)
@@ -94,21 +94,19 @@ static void wait_for_async()
 
 void focus_cb(sound_stream_info_h stream_info, sound_stream_focus_change_reason_e reason, const char *extra_info, void *user_data)
 {
-  g_print("FOCUS callback is called, reason(%d), extra_info(%s), userdata(%p)", reason, extra_info, user_data);
+  PRINT_UTC_LOG("[Line : %d][%s]FOCUS callback is called, reason(%d), extra_info(%s), userdata(%p)",
+    __LINE__, API_NAMESPACE, reason, extra_info, user_data);
   return;
 }
 
 static void set_sound_stream_info()
 {
-  sound_device_list_h device_list = NULL;
-  int ret = SOUND_MANAGER_ERROR_NONE;
-
   if (g_stream_info_h) {
-    g_print("stream information is already set, please destory handle and try again\\n", __LINE__, API_NAMESPACE);
+    PRINT_UTC_LOG("[Line : %d][%s]stream information is already set, please destory handle and try again\\n", __LINE__, API_NAMESPACE);
     return;
   }
   if (sound_manager_create_stream_information(SOUND_STREAM_TYPE_MEDIA, focus_cb, player, &g_stream_info_h)) {
-    g_print("failed to create stream_information()\\n", __LINE__, API_NAMESPACE);
+    PRINT_UTC_LOG("[Line : %d][%s]failed to create stream_information()\\n", __LINE__, API_NAMESPACE);
     return;
   }
   return;
@@ -807,7 +805,6 @@ int utc_media_player_set_sound_type_n(void)
  */
 int utc_media_player_set_sound_type_n2(void)
 {
-    sound_type_e type;
     player_state_e state;
 
     int ret = player_get_state (player, &state);
@@ -837,7 +834,6 @@ int utc_media_player_set_sound_type_n2(void)
  */
 int utc_media_player_set_audio_policy_info_p(void)
 {
-    sound_type_e type;
     player_state_e state;
 
     int ret = player_get_state (player, &state);
@@ -864,7 +860,6 @@ int utc_media_player_set_audio_policy_info_p(void)
  */
 int utc_media_player_set_audio_policy_info_n(void)
 {
-    sound_type_e type;
     player_state_e state;
 
     int ret = player_get_state (player, &state);