Switch MediaDecoderReader subclasses to use OnTaskQueue()

This commit is contained in:
trav90
2017-02-08 03:11:22 -06:00
committed by roytam1
parent da73c16e6e
commit ebcfbba4b6
15 changed files with 64 additions and 69 deletions
+1 -2
View File
@@ -74,8 +74,7 @@ bool
SoftwareWebMVideoDecoder::DecodeVideoFrame(bool &aKeyframeSkip,
int64_t aTimeThreshold)
{
NS_ASSERTION(mReader->GetDecoder()->OnDecodeThread(),
"Should be on decode thread.");
MOZ_ASSERT(mReader->OnTaskQueue());
// Record number of frames decoded and parsed. Automatically update the
// stats counters using the AutoNotifyDecoded stack-based class.