mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 537195 - nsISound.play without esound installed should throw NS_ERROR_NOT_AVAILABLE. r=roc
This commit is contained in:
parent
1b5e231ed3
commit
f49d728632
@ -430,7 +430,7 @@ NS_METHOD nsSound::Play(nsIURL *aURL)
|
||||
Init();
|
||||
|
||||
if (!elib)
|
||||
return NS_ERROR_FAILURE;
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
|
||||
nsCOMPtr<nsIStreamLoader> loader;
|
||||
rv = NS_NewStreamLoader(getter_AddRefs(loader), aURL, this);
|
||||
|
@ -124,7 +124,7 @@ nsSound::Init()
|
||||
EsdOpenSoundType EsdOpenSound;
|
||||
|
||||
elib = PR_LoadLibrary("libesd.so.0");
|
||||
if (!elib) return NS_ERROR_FAILURE;
|
||||
if (!elib) return NS_ERROR_NOT_AVAILABLE;
|
||||
|
||||
EsdOpenSound = (EsdOpenSoundType) PR_FindFunctionSymbol(elib, "esd_open_sound");
|
||||
|
||||
@ -368,7 +368,7 @@ NS_METHOD nsSound::Play(nsIURL *aURL)
|
||||
Init();
|
||||
|
||||
if (!elib)
|
||||
return NS_ERROR_FAILURE;
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
|
||||
nsCOMPtr<nsIStreamLoader> loader;
|
||||
rv = NS_NewStreamLoader(getter_AddRefs(loader), aURL, this);
|
||||
|
Loading…
Reference in New Issue
Block a user