Bug 980052 - Compare the value and not the pointer when checking validity of the preferred sample rate in the OpenSL cubeb backend. r=kinetik

--HG--
extra : rebase_source : 4a65dffc002cd1fc1dc3fcf2b5472ba44196fbbc
This commit is contained in:
Paul Adenot 2014-03-11 09:42:10 +08:00
Родитель 7a8df8647d
Коммит af14f6811a
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -278,7 +278,7 @@ opensl_get_preferred_sample_rate(cubeb * ctx, uint32_t * rate)
* a non-error return value, especially if the audio system is not
* ready/shutting down (i.e. when we can't get our hand on the AudioFlinger
* thread). */
if (rate == 0) {
if (*rate == 0) {
return CUBEB_ERROR;
}