| Index: media/base/android/access_unit_queue.h
|
| diff --git a/media/base/android/access_unit_queue.h b/media/base/android/access_unit_queue.h
|
| index 9fae42000f4924ae59e3f532ac92abd49fe31e2a..d6ea33d74a99643fc91d6cd99bccd2f490fd240f 100644
|
| --- a/media/base/android/access_unit_queue.h
|
| +++ b/media/base/android/access_unit_queue.h
|
| @@ -40,6 +40,9 @@ class AccessUnitQueue {
|
| // Number of access units in the queue.
|
| int length;
|
|
|
| + // Number of access units in the queue excluding config units.
|
| + int data_length;
|
| +
|
| // Whether End Of Stream has been added to the queue. Cleared by Flush().
|
| bool has_eos;
|
|
|
| @@ -75,9 +78,11 @@ class AccessUnitQueue {
|
| void SetHistorySizeForTesting(size_t number_of_history_chunks);
|
|
|
| private:
|
| - // Returns the amount of access units between the current one and the end,
|
| - // incuding current. Logically these are units that have not been consumed.
|
| - int GetUnconsumedAccessUnitLength() const;
|
| + // Returns the total number of access units (total_length) and the number of
|
| + // units excluding configiration change requests (data_length). The number is
|
| + // calculated between the current one and the end, incuding the current.
|
| + // Logically these are units that have not been consumed.
|
| + void GetUnconsumedAccessUnitLength(int* total_length, int* data_length) const;
|
|
|
| // The queue of data chunks. It owns the chunks.
|
| typedef std::list<DemuxerData*> DataChunkQueue;
|
|
|