зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1319992: P3. Remove no longer used seeking argument. r=jwwang
MozReview-Commit-ID: 9Oc0SHX0Rw2 --HG-- extra : rebase_source : 0cea32ef23a47b5ed3b2439f2efa268ec66a523c
This commit is contained in:
Родитель
f97f51ce88
Коммит
70465b6470
|
@ -151,10 +151,8 @@ public:
|
|||
// ReadUpdatedMetadata will always be called once ReadMetadata has succeeded.
|
||||
virtual void ReadUpdatedMetadata(MediaInfo* aInfo) {}
|
||||
|
||||
// Moves the decode head to aTime microseconds. aEndTime denotes the end
|
||||
// time of the media in usecs. This is only needed for OggReader, and should
|
||||
// probably be removed somehow.
|
||||
virtual RefPtr<SeekPromise> Seek(const SeekTarget& aTarget, int64_t aEndTime) = 0;
|
||||
// Moves the decode head to aTime microseconds.
|
||||
virtual RefPtr<SeekPromise> Seek(const SeekTarget& aTarget) = 0;
|
||||
|
||||
virtual void SetCDMProxy(CDMProxy* aProxy) {}
|
||||
|
||||
|
|
|
@ -121,16 +121,15 @@ MediaDecoderReaderWrapper::IsWaitingVideoData() const
|
|||
}
|
||||
|
||||
RefPtr<MediaDecoderReader::SeekPromise>
|
||||
MediaDecoderReaderWrapper::Seek(const SeekTarget& aTarget,
|
||||
const media::TimeUnit& aEndTime)
|
||||
MediaDecoderReaderWrapper::Seek(const SeekTarget& aTarget)
|
||||
{
|
||||
MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn());
|
||||
SeekTarget adjustedTarget = aTarget;
|
||||
adjustedTarget.SetTime(adjustedTarget.GetTime() + StartTime());
|
||||
return InvokeAsync<SeekTarget&&, int64_t>(
|
||||
return InvokeAsync<SeekTarget&&>(
|
||||
mReader->OwnerThread(), mReader.get(), __func__,
|
||||
&MediaDecoderReader::Seek,
|
||||
Move(adjustedTarget), aEndTime.ToMicroseconds());
|
||||
Move(adjustedTarget));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -67,8 +67,7 @@ public:
|
|||
bool IsWaitingAudioData() const;
|
||||
bool IsWaitingVideoData() const;
|
||||
|
||||
RefPtr<SeekPromise> Seek(const SeekTarget& aTarget,
|
||||
const media::TimeUnit& aEndTime);
|
||||
RefPtr<SeekPromise> Seek(const SeekTarget& aTarget);
|
||||
RefPtr<ShutdownPromise> Shutdown();
|
||||
|
||||
void ReleaseResources();
|
||||
|
|
|
@ -1055,7 +1055,7 @@ private:
|
|||
void DoSeek() override
|
||||
{
|
||||
// Request the demuxer to perform seek.
|
||||
mSeekRequest.Begin(Reader()->Seek(mSeekJob.mTarget, mMaster->Duration())
|
||||
mSeekRequest.Begin(Reader()->Seek(mSeekJob.mTarget)
|
||||
->Then(OwnerThread(), __func__,
|
||||
[this] (media::TimeUnit aUnit) {
|
||||
OnSeekResolved(aUnit);
|
||||
|
@ -1350,7 +1350,7 @@ private:
|
|||
{
|
||||
mSeekTask = new NextFrameSeekTask(
|
||||
mMaster->mDecoderID, OwnerThread(), Reader(), mSeekJob.mTarget,
|
||||
Info(), mMaster->Duration(),mMaster->GetMediaTime(),
|
||||
Info(), mMaster->Duration(), mMaster->GetMediaTime(),
|
||||
AudioQueue(), VideoQueue());
|
||||
}
|
||||
|
||||
|
@ -1361,7 +1361,7 @@ private:
|
|||
|
||||
void DoSeek() override
|
||||
{
|
||||
mSeekTaskRequest.Begin(mSeekTask->Seek(mMaster->Duration())
|
||||
mSeekTaskRequest.Begin(mSeekTask->Seek()
|
||||
->Then(OwnerThread(), __func__,
|
||||
[this] (const SeekTaskResolveValue& aValue) {
|
||||
OnSeekTaskResolved(aValue);
|
||||
|
|
|
@ -2277,7 +2277,7 @@ MediaFormatReader::OnVideoSkipFailed(MediaTrackDemuxer::SkipFailureHolder aFailu
|
|||
}
|
||||
|
||||
RefPtr<MediaDecoderReader::SeekPromise>
|
||||
MediaFormatReader::Seek(const SeekTarget& aTarget, int64_t aUnused)
|
||||
MediaFormatReader::Seek(const SeekTarget& aTarget)
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
||||
|
|
|
@ -46,8 +46,7 @@ public:
|
|||
|
||||
void ReadUpdatedMetadata(MediaInfo* aInfo) override;
|
||||
|
||||
RefPtr<SeekPromise>
|
||||
Seek(const SeekTarget& aTarget, int64_t aUnused) override;
|
||||
RefPtr<SeekPromise> Seek(const SeekTarget& aTarget) override;
|
||||
|
||||
protected:
|
||||
void NotifyDataArrived() override;
|
||||
|
|
|
@ -231,7 +231,7 @@ DiscardFrames(MediaQueue<MediaData>& aQueue, const Function& aCompare)
|
|||
}
|
||||
|
||||
RefPtr<NextFrameSeekTask::SeekTaskPromise>
|
||||
NextFrameSeekTask::Seek(const media::TimeUnit&)
|
||||
NextFrameSeekTask::Seek()
|
||||
{
|
||||
AssertOwnerThread();
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
void Discard() override;
|
||||
|
||||
RefPtr<SeekTaskPromise> Seek(const media::TimeUnit& aDuration) override;
|
||||
RefPtr<SeekTaskPromise> Seek() override;
|
||||
|
||||
int64_t CalculateNewCurrentTime() const override;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
|
||||
virtual void Discard() = 0;
|
||||
|
||||
virtual RefPtr<SeekTaskPromise> Seek(const media::TimeUnit& aDuration) = 0;
|
||||
virtual RefPtr<SeekTaskPromise> Seek() = 0;
|
||||
|
||||
virtual int64_t CalculateNewCurrentTime() const = 0;
|
||||
|
||||
|
|
|
@ -313,7 +313,7 @@ bool AndroidMediaReader::DecodeAudioData()
|
|||
}
|
||||
|
||||
RefPtr<MediaDecoderReader::SeekPromise>
|
||||
AndroidMediaReader::Seek(const SeekTarget& aTarget, int64_t aEndTime)
|
||||
AndroidMediaReader::Seek(const SeekTarget& aTarget)
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
bool DecodeVideoFrame(bool &aKeyframeSkip, int64_t aTimeThreshold) override;
|
||||
|
||||
nsresult ReadMetadata(MediaInfo* aInfo, MetadataTags** aTags) override;
|
||||
RefPtr<SeekPromise> Seek(const SeekTarget& aTarget, int64_t aEndTime) override;
|
||||
RefPtr<SeekPromise> Seek(const SeekTarget& aTarget) override;
|
||||
|
||||
RefPtr<ShutdownPromise> Shutdown() override;
|
||||
|
||||
|
|
|
@ -320,7 +320,7 @@ DirectShowReader::DecodeVideoFrame(bool &aKeyframeSkip,
|
|||
}
|
||||
|
||||
RefPtr<MediaDecoderReader::SeekPromise>
|
||||
DirectShowReader::Seek(const SeekTarget& aTarget, int64_t aEndTime)
|
||||
DirectShowReader::Seek(const SeekTarget& aTarget)
|
||||
{
|
||||
nsresult res = SeekInternal(aTarget.GetTime().ToMicroseconds());
|
||||
if (NS_FAILED(res)) {
|
||||
|
|
|
@ -57,8 +57,7 @@ public:
|
|||
nsresult ReadMetadata(MediaInfo* aInfo,
|
||||
MetadataTags** aTags) override;
|
||||
|
||||
RefPtr<SeekPromise>
|
||||
Seek(const SeekTarget& aTarget, int64_t aEndTime) override;
|
||||
RefPtr<SeekPromise> Seek(const SeekTarget& aTarget) override;
|
||||
|
||||
static const GUID CLSID_MPEG_LAYER_3_DECODER_FILTER;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче