Bug 825635 - Volume control stops working in FM when headset is unplugged and plugged. r=baku

This commit is contained in:
Randy Lin 2013-01-03 13:41:14 +08:00
parent 5cc5a6189c
commit b3de1da085

View File

@ -133,6 +133,7 @@ AudioChannelService::UnregisterType(AudioChannelType aType, uint64_t aChildID)
if (isNoChannelUsed) {
nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();
obs->NotifyObservers(nullptr, "audio-channel-changed", NS_LITERAL_STRING("default").get());
mCurrentHigherChannel = AUDIO_CHANNEL_NORMAL;
return;
}