Bug 1105553 - Handle 'CANCELLED' NotDecodedReason in MediaSourceReader. r=ajones

This commit is contained in:
Matt Woodrow 2014-11-28 13:17:32 +13:00
parent b86193d2fa
commit 6f8543ba2b

View File

@ -180,7 +180,8 @@ void
MediaSourceReader::OnNotDecoded(MediaData::Type aType, RequestSampleCallback::NotDecodedReason aReason)
{
MSE_DEBUG("MediaSourceReader(%p)::OnNotDecoded aType=%u aReason=%u IsEnded: %d", this, aType, aReason, IsEnded());
if (aReason == RequestSampleCallback::DECODE_ERROR) {
if (aReason == RequestSampleCallback::DECODE_ERROR ||
aReason == RequestSampleCallback::CANCELED) {
GetCallback()->OnNotDecoded(aType, aReason);
return;
}