Bug #194632 --> linux builds are loading the wrong library for sounds.

r/sr=bryner
This commit is contained in:
scott%scott-macgregor.org 2004-03-07 19:12:21 +00:00
parent e4be18f1e5
commit 0785d3a102
2 changed files with 2 additions and 7 deletions

View File

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

View File

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