mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 868806 - Handle OMXCodec's error. r=doublec
This commit is contained in:
parent
e7330749bd
commit
db7c471a36
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user