diff options
author | Paul Adenot <[email protected]> | 2023-11-08 14:39:44 +0100 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-11-08 14:42:49 +0100 |
commit | d07ea5aa6641afc916784e9cc7d69d763b621f32 (patch) | |
tree | 81199a29758f6abc5c72fcae6e67eaf346423678 | |
parent | 785a3ca15545b386536574e8a1984605591070ea (diff) | |
download | cubeb-d07ea5aa6641afc916784e9cc7d69d763b621f32.tar.gz cubeb-d07ea5aa6641afc916784e9cc7d69d763b621f32.zip |
Fix mistake break audio input on OpenSL ES
-rw-r--r-- | src/cubeb_opensl.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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); |