Bug 1531833 - Make setting the performance mode in OpenSL ES a non fatal error, it's not available on some Android versions that are supported. r?achronop

Differential Revision: https://phabricator.services.mozilla.com/D26727
This commit is contained in:
Paul Adenot 2019-04-09 15:34:07 +02:00
Родитель 751df98bd5
Коммит c2ed6c9e44
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -1135,9 +1135,8 @@ opensl_configure_playback(cubeb_stream * stm, cubeb_stream_params * params) {
&performanceMode,
sizeof(performanceMode));
if (res != SL_RESULT_SUCCESS) {
LOG("Failed to set Android performance mode to %d Error code: %lu",
performanceMode, res);
return CUBEB_ERROR;
LOG("Failed to set Android performance mode to %d Error code: %lu. This is"
" not fatal", performanceMode, res);
}
res = (*stm->playerObj)->Realize(stm->playerObj, SL_BOOLEAN_FALSE);