aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_opensl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cubeb_opensl.cpp')
-rw-r--r--src/cubeb_opensl.cpp8
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);