Bug 1065905 - remove warning on |mPlaying| for it could change when AudioSink not in the monitor. r=kinetik

This commit is contained in:
JW Wang 2014-09-14 23:03:00 +02:00
Родитель 91998dcf59
Коммит 0ec9b2b3b4
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -294,13 +294,7 @@ AudioSink::PlayFromAudioQueue()
AssertOnAudioThread();
NS_ASSERTION(!mAudioStream->IsPaused(), "Don't play when paused");
nsAutoPtr<AudioData> audio(AudioQueue().PopFront());
{
ReentrantMonitorAutoEnter mon(GetReentrantMonitor());
NS_WARN_IF_FALSE(mPlaying, "Should be playing");
// Awaken the decode loop if it's waiting for space to free up in the
// audio queue.
GetReentrantMonitor().NotifyAll();
}
SINK_LOG_V("playing %u frames of audio at time %lld",
audio->mFrames, audio->mTime);
mAudioStream->Write(audio->mAudioData, audio->mFrames);