Bug 1125472 - Don't flush decode task queue in MediaDecoderStateMachine::FlushDecoding(). r=bholley

This commit is contained in:
Chris Pearce 2015-01-27 19:30:11 +13:00
parent efc9bfa75d
commit cd88460b5b

View File

@ -2941,7 +2941,8 @@ MediaDecoderStateMachine::FlushDecoding()
// and shutdown on B2G will fail as there are outstanding video frames
// alive.
ReentrantMonitorAutoExit exitMon(mDecoder->GetReentrantMonitor());
DecodeTaskQueue()->FlushAndDispatch(task);
DecodeTaskQueue()->Dispatch(task);
DecodeTaskQueue()->AwaitIdle();
}
// We must reset playback so that all references to frames queued