From d07ea5aa6641afc916784e9cc7d69d763b621f32 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Wed, 8 Nov 2023 14:39:44 +0100 Subject: Fix mistake break audio input on OpenSL ES --- src/cubeb_opensl.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/cubeb_opensl.cpp b/src/cubeb_opensl.cpp index 0c9f41e..6f3c7bd 100644 --- a/src/cubeb_opensl.cpp +++ b/src/cubeb_opensl.cpp @@ -1051,12 +1051,8 @@ opensl_configure_capture(cubeb_stream * stm, cubeb_stream_params * params) stm->context->eng, &stm->recorderObj, &dataSource, &dataSink, NELEMS(lSoundRecorderIIDs), lSoundRecorderIIDs, lSoundRecorderReqs); - - if (res != SL_RESULT_SUCCESS) { - LOG("Failed to create recorder. Error code: %lu", res); - return CUBEB_ERROR; - } - } else { + } + if (res != SL_RESULT_SUCCESS) { LOG("Failed to create recorder, not trying other input" " rate. Error code: %lu", res); -- cgit v1.2.3