Merge "Fix unset audio policy" into tizen
[platform/core/uifw/tts.git] / server / ttsd_player.c
index 41fe11c..a8a2bf4 100644 (file)
@@ -444,10 +444,9 @@ static void __play_thread(void *data, Ecore_Thread *thread)
                                                                SLOG(LOG_DEBUG, tts_tag(), "[Player SUCCESS] Unprepare audio");
                                                        }
                                                        g_audio_state = AUDIO_STATE_READY;
-
-                                                       /* unset volume policy, volume will be 100% */
-                                                       __unset_policy_for_playing();
                                                }
+                                               /* unset volume policy, volume will be 100% */
+                                               __unset_policy_for_playing();
                                                return;
                                        } else if (0 < ttsd_data_get_sound_data_size(player->uid)) {
                                                /* new audio data come */