зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1378085 p7 - override DoSeek(); r=jwwang
MozReview-Commit-ID: 3qSR1wXwVo1 --HG-- extra : rebase_source : 87398b8516a76e4f8edbe1f6f43609c38115cd10
This commit is contained in:
Родитель
dfa24e7c1a
Коммит
af0fec1b1b
|
@ -1167,15 +1167,11 @@ public:
|
|||
|
||||
void DoSeek() override
|
||||
{
|
||||
mDoneAudioSeeking = !Info().HasAudio() || mSeekJob.mTarget->IsVideoOnly();
|
||||
mDoneAudioSeeking = !Info().HasAudio();
|
||||
mDoneVideoSeeking = !Info().HasVideo();
|
||||
|
||||
if (mSeekJob.mTarget->IsVideoOnly()) {
|
||||
mMaster->ResetDecode(TrackInfo::kVideoTrack);
|
||||
} else {
|
||||
mMaster->ResetDecode();
|
||||
mMaster->StopMediaSink();
|
||||
}
|
||||
mMaster->ResetDecode();
|
||||
mMaster->StopMediaSink();
|
||||
|
||||
DemuxerSeek();
|
||||
}
|
||||
|
@ -1795,6 +1791,17 @@ public:
|
|||
|
||||
// Ignore pending requests from video-only seek.
|
||||
}
|
||||
|
||||
void DoSeek() override
|
||||
{
|
||||
// TODO: keep decoding audio.
|
||||
mDoneAudioSeeking = true;
|
||||
mDoneVideoSeeking = !Info().HasVideo();
|
||||
|
||||
mMaster->ResetDecode(TrackInfo::kVideoTrack);
|
||||
|
||||
DemuxerSeek();
|
||||
}
|
||||
};
|
||||
|
||||
RefPtr<MediaDecoder::SeekPromise>
|
||||
|
|
Загрузка…
Ссылка в новой задаче