зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1065905 - remove warning on |mPlaying| for it could change when AudioSink not in the monitor. r=kinetik
This commit is contained in:
Родитель
91998dcf59
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче