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:
Jean-Yves Avenard 2019-03-13 06:58:35 +00:00
parent bc226441e9
commit 3113118c4a
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}

View File

@ -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 {