mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1534893 - Don't attempt to display an invalid TimeUnit. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D23273 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
bc226441e9
commit
3113118c4a
@ -2899,7 +2899,11 @@ void MediaFormatReader::SetVideoDecodeThreshold() {
|
||||
return;
|
||||
}
|
||||
|
||||
LOG("Set seek threshold to %" PRId64, threshold.ToMicroseconds());
|
||||
if (threshold.IsValid()) {
|
||||
LOG("Set seek threshold to %" PRId64, threshold.ToMicroseconds());
|
||||
} else {
|
||||
LOG("Resetting seek threshold");
|
||||
}
|
||||
mVideo.mDecoder->SetSeekThreshold(threshold);
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,6 @@ AppleVTDecoder::AppleFrameRef* AppleVTDecoder::CreateAppleFrameRef(
|
||||
}
|
||||
|
||||
void AppleVTDecoder::SetSeekThreshold(const media::TimeUnit& aTime) {
|
||||
LOG("SetSeekThreshold %lld", aTime.ToMicroseconds());
|
||||
if (aTime.IsValid()) {
|
||||
mSeekTargetThreshold = Some(aTime);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user