зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1324357 - Remove MediaDecoderReader::ForceZeroStartTime(); r=jya
MozReview-Commit-ID: Cm511lpJQ4W --HG-- extra : rebase_source : c9d1a5a66b787ffffc221c194bb18559c006fa4b
This commit is contained in:
Родитель
33b498ac62
Коммит
5c4d2f2a1d
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче