Bug 1324357 - Remove MediaDecoderReader::ForceZeroStartTime(); r=jya

MozReview-Commit-ID: Cm511lpJQ4W

--HG--
extra : rebase_source : c9d1a5a66b787ffffc221c194bb18559c006fa4b
This commit is contained in:
Kaku Kuo 2016-12-21 14:58:38 +08:00
Родитель 33b498ac62
Коммит 5c4d2f2a1d
4 изменённых файлов: 1 добавлений и 13 удалений

Просмотреть файл

@ -164,9 +164,6 @@ public:
mIgnoreAudioOutputFormat = true;
}
// MediaSourceReader opts out of the start-time-guessing mechanism.
virtual bool ForceZeroStartTime() const { return false; }
// The MediaDecoderStateMachine uses various heuristics that assume that
// raw media data is arriving sequentially from a network channel. This
// makes sense in the <video src="foo"> case, but not for more advanced use

Просмотреть файл

@ -77,7 +77,6 @@ public:
bool IsWaitForDataSupported() const { return mReader->IsWaitForDataSupported(); }
bool IsAsync() const { return mReader->IsAsync(); }
bool UseBufferingHeuristics() const { return mReader->UseBufferingHeuristics(); }
bool ForceZeroStartTime() const { return mReader->ForceZeroStartTime(); }
bool VideoIsHardwareAccelerated() const {
return mReader->VideoIsHardwareAccelerated();

Просмотреть файл

@ -1094,7 +1094,7 @@ MediaFormatReader::OnDemuxerInitDone(nsresult)
// For MSE case, the start time of each track is assumed to be 0.
// For others, we must demux the first sample to know the start time for each
// track.
if (ForceZeroStartTime()) {
if (!mDemuxer->ShouldComputeStartTime()) {
mAudio.mFirstDemuxedSampleTime.emplace(TimeUnit::FromMicroseconds(0));
mVideo.mFirstDemuxedSampleTime.emplace(TimeUnit::FromMicroseconds(0));
} else {
@ -2634,12 +2634,6 @@ MediaFormatReader::UpdateBuffered()
}
}
bool
MediaFormatReader::ForceZeroStartTime() const
{
return !mDemuxer->ShouldComputeStartTime();
}
layers::ImageContainer*
MediaFormatReader::GetImageContainer()
{

Просмотреть файл

@ -53,8 +53,6 @@ protected:
void UpdateBuffered() override;
public:
bool ForceZeroStartTime() const override;
// For Media Resource Management
void ReleaseResources() override;