From 1c30766608fac3f08398e83b607d7cc056ac44a9 Mon Sep 17 00:00:00 2001 From: 15754133731 Date: Wed, 8 Mar 2023 14:34:55 +0800 Subject: [PATCH] =?UTF-8?q??= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 15754133731 --- .../openslesPlayerNdk/ActsOpenslesPlayerNdkTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/multimedia/audio/audio_cpp_standard/openslesPlayerNdk/ActsOpenslesPlayerNdkTest.cpp b/multimedia/audio/audio_cpp_standard/openslesPlayerNdk/ActsOpenslesPlayerNdkTest.cpp index fd1a3f3c6..1391c0df6 100644 --- a/multimedia/audio/audio_cpp_standard/openslesPlayerNdk/ActsOpenslesPlayerNdkTest.cpp +++ b/multimedia/audio/audio_cpp_standard/openslesPlayerNdk/ActsOpenslesPlayerNdkTest.cpp @@ -166,6 +166,10 @@ static SLresult OpenSlTest() } SLmillibel pLevel = 0; result = (*volumeItf)->GetVolumeLevel(volumeItf, &pLevel); + if (SL_RESULT_SUCCESS != result) { + AUDIO_INFO_LOG("OpenSlTest GetVolumeLevel result: %{public}lu", result); + return result; + } result = (*pcmPlayerObject)->GetInterface(pcmPlayerObject, SL_IID_OH_BUFFERQUEUE, &bufferQueueItf); if (SL_RESULT_SUCCESS != result) { AUDIO_INFO_LOG("OpenSlTest get bufferQueueItf result: %{public}lu", result); -- GitLab