Bug 1312886: P1. Fix comments. r=cpearce

A MediaDataDecoder now always call InputExhausted once decoding is completed.

MozReview-Commit-ID: K6SCRYb2ieI

--HG--
extra : rebase_source : 315e85eee417561be1713402bd8118ef7bffba88
This commit is contained in:
Jean-Yves Avenard 2016-10-27 10:05:21 +11:00
Родитель 2275539222
Коммит 6cdfa7a953
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -306,11 +306,10 @@ private:
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;