[ITC][wav-player][Non-ACR][Fix not to wait complete callback when stopping wav-player] 12/214512/2
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 23 Sep 2019 12:50:24 +0000 (21:50 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 23 Sep 2019 12:51:38 +0000 (21:51 +0900)
Following developer document indicates that callback is not invoked by calling stop API

  typedef void(* wav_player_playback_completed_cb)(int id, void *user_data)
    Called when a WAV file has finished playing.
    This callback is not invoked by calling wav_player_stop().

Change-Id: I286ec18812c1c4d1f86274287b45c74ac7fbd7ef

src/itc/wav-player/ITs-wav-player.c

index fb18a67ea346227ea6d046c875e6453c4086131f..e34987debf19125cefee5f36ae79614a735bf3f0 100755 (executable)
@@ -185,13 +185,7 @@ int ITc_wav_player_start_new_stop_p(void)
                }
                nRet = wav_player_stop(nId);
                PRINT_RESULT(WAV_PLAYER_ERROR_NONE, nRet, "wav_player_stop", WavPlayerGetError(nRet));
-               RUN_POLLING_LOOP;
-               if ( !g_bWavPlayerPlaybackCompletedCallback )
-               {
-                       FPRINTF("[Line : %d][%s] wav_player_start_new failed, error returned = callback not invoked\\n", __LINE__, API_NAMESPACE);
-                       sound_manager_destroy_stream_information(hStreamInfo);
-                       return 1;
-               }
+
                nRet = sound_manager_destroy_stream_information(hStreamInfo);
                PRINT_RESULT(SOUND_MANAGER_ERROR_NONE, nRet, "sound_manager_destroy_stream_information\\n", SoundManagerGetError(nRet));
        }