void AppleVTDecoder::ProcessFlush() { AssertOnTaskQueueThread(); nsresult rv = WaitForAsynchronousFrames(); if (NS_FAILED(rv)) { LOG("AppleVTDecoder::Flush failed waiting for platform decoder " "with error:%d.", rv); } ClearReorderedFrames(); }
nsresult AppleVTDecoder::Flush() { mTaskQueue->Flush(); nsresult rv = WaitForAsynchronousFrames(); if (NS_FAILED(rv)) { LOG("AppleVTDecoder::Drain failed waiting for platform decoder."); } ClearReorderedFrames(); return rv; }
nsresult AppleVDADecoder::Flush() { mTaskQueue->Flush(); OSStatus rv = VDADecoderFlush(mDecoder, 0 /*dont emit*/); if (rv != noErr) { LOG("AppleVDADecoder::Flush failed waiting for platform decoder " "with error:%d.", rv); } ClearReorderedFrames(); return NS_OK; }
void AppleVTDecoder::ProcessFlush() { MOZ_ASSERT(mTaskQueue->IsCurrentThreadIn()); nsresult rv = WaitForAsynchronousFrames(); if (NS_FAILED(rv)) { LOG("AppleVTDecoder::Flush failed waiting for platform decoder " "with error:%d.", rv); } ClearReorderedFrames(); MonitorAutoLock mon(mMonitor); mIsFlushing = false; mon.NotifyAll(); }
void AppleVDADecoder::ProcessFlush() { MOZ_ASSERT(mTaskQueue->IsCurrentThreadIn()); OSStatus rv = VDADecoderFlush(mDecoder, 0 /*dont emit*/); if (rv != noErr) { LOG("AppleVDADecoder::Flush failed waiting for platform decoder " "with error:%d.", rv); } ClearReorderedFrames(); MonitorAutoLock mon(mMonitor); mIsFlushing = false; mon.NotifyAll(); }