Bug 1286454 part 2 - remove MediaDecoderReader::mAudioDiscontinuity since it leads to nothing now; r=jwwang

MozReview-Commit-ID: DjOXLa5aDm1

--HG--
extra : rebase_source : 1ada8cb696ffdd884723a2c75634a3edfcad1815
This commit is contained in:
Kaku Kuo 2016-08-25 18:14:17 +08:00
Родитель fcd9df9127
Коммит 4000b4f2ab
2 изменённых файлов: 0 добавлений и 6 удалений

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

@ -224,7 +224,6 @@ MediaDecoderReader::MediaDecoderReader(AbstractMediaDecoder* aDecoder)
, mIgnoreAudioOutputFormat(false)
, mHitAudioDecodeError(false)
, mShutdown(false)
, mAudioDiscontinuity(false)
, mVideoDiscontinuity(false)
, mIsSuspended(mTaskQueue, true,
"MediaDecoderReader::mIsSuspended (Canonical)")
@ -297,7 +296,6 @@ nsresult MediaDecoderReader::ResetDecode(TrackSet aTracks)
if (aTracks.contains(TrackInfo::kAudioTrack)) {
AudioQueue().Reset();
mAudioDiscontinuity = true;
mBaseAudioPromise.RejectIfExists(CANCELED, __func__);
}
@ -493,9 +491,6 @@ MediaDecoderReader::RequestAudioData()
}
if (AudioQueue().GetSize() > 0) {
RefPtr<AudioData> a = AudioQueue().PopFront();
if (mAudioDiscontinuity) {
mAudioDiscontinuity = false;
}
mBaseAudioPromise.Resolve(a, __func__);
} else if (AudioQueue().IsFinished()) {
mBaseAudioPromise.Reject(mHitAudioDecodeError ? DECODE_ERROR : END_OF_STREAM, __func__);

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

@ -466,7 +466,6 @@ private:
// Flags whether a the next audio/video sample comes after a "gap" or
// "discontinuity" in the stream. For example after a seek.
bool mAudioDiscontinuity;
bool mVideoDiscontinuity;
Canonical<bool> mIsSuspended;