mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
Bug 1065905 - remove warning on |mPlaying| for it could change when AudioSink not in the monitor. r=kinetik
This commit is contained in:
parent
91998dcf59
commit
0ec9b2b3b4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user