Bug 1312886: P1. Fix comments. r?cpearce
A MediaDataDecoder now always call InputExhausted once decoding is completed.
MozReview-Commit-ID: K6SCRYb2ieI
--- a/dom/media/MediaFormatReader.h
+++ b/dom/media/MediaFormatReader.h
@@ -301,21 +301,20 @@ private:
// MediaDataDecoder handler's variables.
// Decoder initialization promise holder.
MozPromiseRequestHolder<MediaDataDecoder::InitPromise> mInitPromise;
// False when decoder is created. True when decoder Init() promise is resolved.
bool mDecoderInitialized;
bool mOutputRequested;
// Set to true once the MediaDataDecoder has been fed a compressed sample.
- // No more sample will be passed to the decoder while true.
+ // No more samples will be passed to the decoder while true.
// mDecodePending is reset when:
- // 1- The decoder returns a sample
- // 2- The decoder calls InputExhausted
- // 3- The decoder is Flushed or Reset.
+ // 1- The decoder calls InputExhausted
+ // 2- The decoder is Flushed or Reset.
bool mDecodePending;
bool mNeedDraining;
bool mDraining;
bool mDrainComplete;
bool HasPendingDrain() const
{
return mDraining || mDrainComplete;