Chromium Code Reviews| 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..54a5a944b2a156d0e8758df55930b27dd6ed2233 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 (total_length) and the number of units |
|
qinmin
2015/08/27 19:38:42
s/access/access units/
Tima Vaisburd
2015/08/27 20:39:47
Done.
|
| + // 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; |