mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug #194632 --> linux builds are loading the wrong library for sounds.
r/sr=bryner
This commit is contained in:
parent
e4be18f1e5
commit
0785d3a102
@ -86,7 +86,7 @@ nsSound::Init()
|
||||
|
||||
EsdOpenSoundType EsdOpenSound;
|
||||
|
||||
elib = PR_LoadLibrary("libesd.so");
|
||||
elib = PR_LoadLibrary("libesd.so.0");
|
||||
if (!elib) return NS_ERROR_FAILURE;
|
||||
|
||||
EsdOpenSound = (EsdOpenSoundType) PR_FindSymbol(elib, "esd_open_sound");
|
||||
|
@ -91,13 +91,8 @@ nsSound::Init()
|
||||
|
||||
EsdOpenSoundType EsdOpenSound;
|
||||
|
||||
// first try libesd.so.0 and then libesd.so
|
||||
elib = PR_LoadLibrary("libesd.so.0");
|
||||
if (!elib) {
|
||||
elib = PR_LoadLibrary("libesd.so");
|
||||
if (!elib)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (!elib) return NS_ERROR_FAILURE;
|
||||
|
||||
EsdOpenSound = (EsdOpenSoundType) PR_FindSymbol(elib, "esd_open_sound");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user