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
parent fb073bbd6b
commit 021cca5f9d

View File

@ -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);