Bug 1147258 - Check with assertion if there is any queued sample when EOS. r=ajones

This commit is contained in:
Blake Wu 2015-03-27 15:56:07 +08:00
parent 26fb4ce03c
commit 9a2ad6b247

View File

@ -202,8 +202,6 @@ GonkMediaDataDecoder::ProcessOutput()
}
}
MOZ_ASSERT_IF(mSignaledEOS, !mManager->HasQueuedSample());
if (rv == NS_ERROR_NOT_AVAILABLE && !mSignaledEOS) {
mCallback->InputExhausted();
return;
@ -217,6 +215,7 @@ GonkMediaDataDecoder::ProcessOutput()
mCallback->Output(output);
}
mCallback->DrainComplete();
MOZ_ASSERT_IF(mSignaledEOS, !mManager->HasQueuedSample());
mSignaledEOS = false;
mDrainComplete = true;
return;