mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 658177 - Fix potential deadlock in gVolumeScaleLock. r=roc
This commit is contained in:
parent
eaaadb6040
commit
f13ccdbf75
@ -321,9 +321,9 @@ static mozilla::Mutex* gVolumeScaleLock = nsnull;
|
||||
static double gVolumeScale = 1.0;
|
||||
|
||||
static int VolumeScaleChanged(const char* aPref, void *aClosure) {
|
||||
mozilla::MutexAutoLock lock(*gVolumeScaleLock);
|
||||
nsAdoptingString value =
|
||||
nsContentUtils::GetStringPref("media.volume_scale");
|
||||
mozilla::MutexAutoLock lock(*gVolumeScaleLock);
|
||||
if (value.IsEmpty()) {
|
||||
gVolumeScale = 1.0;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user