Bug 1341200. Part 9 - remove unused mShuttingDown.
MozReview-Commit-ID: 8OWgOB07rEP
--- a/dom/media/MediaFormatReader.cpp
+++ b/dom/media/MediaFormatReader.cpp
@@ -1931,17 +1931,17 @@ MediaFormatReader::DecodeDemuxedSamples(
void
MediaFormatReader::HandleDemuxedSamples(
TrackType aTrack, AbstractMediaDecoder::AutoNotifyDecoded& aA)
{
MOZ_ASSERT(OnTaskQueue());
auto& decoder = GetDecoderData(aTrack);
- if (decoder.mFlushing || decoder.mShuttingDown) {
+ if (decoder.mFlushing) {
LOGV("Decoder operation in progress, let it complete.");
return;
}
if (decoder.mQueuedSamples.IsEmpty()) {
return;
}
@@ -2305,26 +2305,26 @@ MediaFormatReader::Update(TrackType aTra
}
return;
}
bool needInput = NeedInput(decoder);
LOGV(
"Update(%s) ni=%d no=%d in:%" PRIu64 " out:%" PRIu64
- " qs=%u decoding:%d flushing:%d shutdown:%d pending:%u waiting:%d sid:%u",
+ " qs=%u decoding:%d flushing:%d desc:%s pending:%u waiting:%d sid:%u",
TrackTypeToStr(aTrack),
needInput,
needOutput,
decoder.mNumSamplesInput,
decoder.mNumSamplesOutput,
uint32_t(size_t(decoder.mSizeOfQueue)),
decoder.mDecodeRequest.Exists(),
decoder.mFlushing,
- decoder.mShuttingDown,
+ decoder.mDescription,
uint32_t(decoder.mOutput.Length()),
decoder.mWaitingForData,
decoder.mLastStreamSourceID);
if ((decoder.mWaitingForData
&& (!decoder.mTimeThreshold || decoder.mTimeThreshold.ref().mWaiting))
|| (decoder.mWaitingForKey && decoder.mDecodeRequest.Exists())) {
// Nothing more we can do at present.
--- a/dom/media/MediaFormatReader.h
+++ b/dom/media/MediaFormatReader.h
@@ -244,17 +244,16 @@ private:
}
// MediaDataDecoder handler's variables.
MozPromiseRequestHolder<MediaDataDecoder::DecodePromise> mDecodeRequest;
bool mFlushing; // True if flush is in action.
// Set to true if the last operation run on the decoder was a flush.
bool mFlushed;
MozPromiseHolder<ShutdownPromise> mShutdownPromise;
- bool mShuttingDown = false; // True if shutdown is in action.
MozPromiseRequestHolder<MediaDataDecoder::DecodePromise> mDrainRequest;
DrainState mDrainState;
bool HasPendingDrain() const
{
return mDrainState != DrainState::None;
}
void RequestDrain()