Fix mistake break audio input on OpenSL ES

This commit is contained in:
Paul Adenot 2023-11-08 14:39:44 +01:00
Родитель 785a3ca155
Коммит d07ea5aa66
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -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);