mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Bug 1307013: Error once number of errors reach threshold. r=gerald
MozReview-Commit-ID: L6hI7CRSCCF --HG-- extra : rebase_source : bf2cdba33e552e0aacc49a2c767352659bda1145
This commit is contained in:
parent
5619d26af8
commit
5205ad7fdd
@ -328,7 +328,9 @@ private:
|
|||||||
Maybe<MediaResult> mError;
|
Maybe<MediaResult> mError;
|
||||||
bool HasFatalError() const
|
bool HasFatalError() const
|
||||||
{
|
{
|
||||||
return mError.isSome() && mError.ref() != NS_ERROR_DOM_MEDIA_DECODE_ERR;
|
return mError.isSome() &&
|
||||||
|
(mError.ref() != NS_ERROR_DOM_MEDIA_DECODE_ERR ||
|
||||||
|
mNumOfConsecutiveError > mMaxConsecutiveError);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If set, all decoded samples prior mTimeThreshold will be dropped.
|
// If set, all decoded samples prior mTimeThreshold will be dropped.
|
||||||
|
Loading…
Reference in New Issue
Block a user