зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1268233 - Don't unregister for audio session notifications if we haven't registered yet. r=aklotz
MozReview-Commit-ID: JvUhjyoYzf6
This commit is contained in:
Родитель
77877c51ae
Коммит
7e4e5509cb
|
@ -296,10 +296,11 @@ AudioSession::Start()
|
|||
void
|
||||
AudioSession::StopInternal()
|
||||
{
|
||||
if (mAudioSessionControl) {
|
||||
if (mAudioSessionControl &&
|
||||
(mState == STARTED || mState == STOPPED)) {
|
||||
mAudioSessionControl->UnregisterAudioSessionNotification(this);
|
||||
mAudioSessionControl = nullptr;
|
||||
}
|
||||
mAudioSessionControl = nullptr;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче