mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
2a6faa6bf8
Usually the threshold is reset internally in MediaDataDecoder subclasses that support the hint in their Flush() implementations so the value will start fresh after seeking completed. But sometimes when there are consecutive seek requests, MediaFormatReader::DecoderData::Flush() could return early because DecoderData::mFlushed stays true when there is no sample demuxed yet, and the threshold will not be cleared. Also, in MediaFormatReader::SetVideoDecodeThreshold() we decide not to set the hint when the seek target is close to EOS by checking the existence of the next keyframe, and that could fail when there are gaps between MSE buffered ranges. To make sure the hint is never out of date, we should clear it rather than leaving it untouched. Differential Revision: https://phabricator.services.mozilla.com/D15227 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
AppleATDecoder.cpp | ||
AppleATDecoder.h | ||
AppleDecoderModule.cpp | ||
AppleDecoderModule.h | ||
AppleEncoderModule.cpp | ||
AppleEncoderModule.h | ||
AppleUtils.h | ||
AppleVTDecoder.cpp | ||
AppleVTDecoder.h | ||
AppleVTEncoder.cpp | ||
AppleVTEncoder.h |