зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1294656 - apply FastSeek to video files without audio track; r=jwwang
MozReview-Commit-ID: 8r4Ghd9RXbq --HG-- extra : rebase_source : 165b74bde60d816a864e92dde1bc64f4dc8896fe
This commit is contained in:
Родитель
610c9bd786
Коммит
4ffe57b7d1
|
@ -1383,10 +1383,16 @@ void MediaDecoderStateMachine::VisibilityChanged()
|
|||
|
||||
// Start video-only seek to the current time...
|
||||
SeekJob seekJob;
|
||||
|
||||
const SeekTarget::Type type = HasAudio()
|
||||
? SeekTarget::Type::Accurate
|
||||
: SeekTarget::Type::PrevSyncPoint;
|
||||
|
||||
seekJob.mTarget = SeekTarget(GetMediaTime(),
|
||||
SeekTarget::Type::Accurate,
|
||||
type,
|
||||
MediaDecoderEventVisibility::Suppressed,
|
||||
true /* aVideoOnly */);
|
||||
|
||||
InitiateSeek(Move(seekJob));
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче