Bug 868806 - Handle OMXCodec's error. r=doublec

This commit is contained in:
Sotaro Ikeda 2013-05-15 21:35:34 -04:00
parent e7330749bd
commit db7c471a36

View File

@ -611,6 +611,9 @@ bool OmxDecoder::ReadVideo(VideoFrame *aFrame, int64_t aTimeUs,
// don't keep trying to decode if the decoder doesn't want to.
return false;
}
else if (err != OK && err != -ETIMEDOUT) {
return false;
}
return true;
}
@ -664,6 +667,9 @@ bool OmxDecoder::ReadAudio(AudioFrame *aFrame, int64_t aSeekTimeUs)
else if (err == UNKNOWN_ERROR) {
return false;
}
else if (err != OK && err != -ETIMEDOUT) {
return false;
}
return true;
}