diff options
author | Paul Adenot <[email protected]> | 2023-10-23 10:21:58 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-10-24 11:11:47 +0200 |
commit | 75d5e6a04031e2f6b687c5327c4e0608c93b6ca6 (patch) | |
tree | a634c934ad77bbcb6c97b2be48c9d89c08399c0b | |
parent | f1bfefbbd412eaa0fe89f5afb3c11b427dc2446a (diff) | |
download | cubeb-75d5e6a04031e2f6b687c5327c4e0608c93b6ca6.tar.gz cubeb-75d5e6a04031e2f6b687c5327c4e0608c93b6ca6.zip |
Return an error if failing to open a recorder and it's not a sample-rate not supported issue
-rw-r--r-- | src/cubeb_opensl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cubeb_opensl.cpp b/src/cubeb_opensl.cpp index 171a32e..0c9f41e 100644 --- a/src/cubeb_opensl.cpp +++ b/src/cubeb_opensl.cpp @@ -1056,6 +1056,11 @@ opensl_configure_capture(cubeb_stream * stm, cubeb_stream_params * params) LOG("Failed to create recorder. Error code: %lu", res); return CUBEB_ERROR; } + } else { + LOG("Failed to create recorder, not trying other input" + " rate. Error code: %lu", + res); + return CUBEB_ERROR; } // It's always possible to use int16 regardless of the Android version. // However if compiling for older Android version, it's possible to |