зеркало из https://github.com/mozilla/pjs.git
Bug 469635. Try to find the right Alsa library to quieten. r+sr=roc
This commit is contained in:
Родитель
876e7c8b64
Коммит
c315ea23fc
|
@ -172,16 +172,12 @@ nsSound::Init()
|
|||
}
|
||||
|
||||
if (!libasound) {
|
||||
libasound = PR_LoadLibrary("libasound.so.2");
|
||||
PRFuncPtr func = PR_FindFunctionSymbolAndLibrary("snd_lib_error_set_handler",
|
||||
&libasound);
|
||||
if (libasound) {
|
||||
snd_lib_error_set_handler_fn snd_lib_error_set_handler =
|
||||
(snd_lib_error_set_handler_fn) PR_FindFunctionSymbol(libasound, "snd_lib_error_set_handler");
|
||||
if (snd_lib_error_set_handler) {
|
||||
snd_lib_error_set_handler(quiet_error_handler);
|
||||
} else {
|
||||
PR_UnloadLibrary(libasound);
|
||||
libasound = nsnull;
|
||||
}
|
||||
(snd_lib_error_set_handler_fn) func;
|
||||
snd_lib_error_set_handler(quiet_error_handler);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче