diff options
Diffstat (limited to 'media/base/decoder_buffer.h')
-rw-r--r-- | media/base/decoder_buffer.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/media/base/decoder_buffer.h b/media/base/decoder_buffer.h index c23e88f..7cb496b 100644 --- a/media/base/decoder_buffer.h +++ b/media/base/decoder_buffer.h @@ -5,8 +5,6 @@ #ifndef MEDIA_BASE_DECODER_BUFFER_H_ #define MEDIA_BASE_DECODER_BUFFER_H_ -#include <string> - #include "base/memory/aligned_memory.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" @@ -25,8 +23,6 @@ class DecryptConfig; // allocated using FFmpeg with particular alignment and padding requirements. // // Also includes decoder specific functionality for decryption. -// -// NOTE: It is illegal to call any method when IsEndOfStream() is true. class MEDIA_EXPORT DecoderBuffer : public base::RefCountedThreadSafe<DecoderBuffer> { public: @@ -47,10 +43,8 @@ class MEDIA_EXPORT DecoderBuffer // padded and aligned as necessary. |data| must not be NULL and |size| >= 0. static scoped_refptr<DecoderBuffer> CopyFrom(const uint8* data, int size); - // Create a DecoderBuffer indicating we've reached end of stream. - // - // Calling any method other than IsEndOfStream() on the resulting buffer - // is disallowed. + // Create a DecoderBuffer indicating we've reached end of stream. GetData() + // and GetWritableData() will return NULL and GetDataSize() will return 0. static scoped_refptr<DecoderBuffer> CreateEOSBuffer(); base::TimeDelta GetTimestamp() const; @@ -70,9 +64,6 @@ class MEDIA_EXPORT DecoderBuffer // If there's no data in this buffer, it represents end of stream. bool IsEndOfStream() const; - // Returns a human-readable string describing |*this|. - std::string AsHumanReadableString(); - protected: friend class base::RefCountedThreadSafe<DecoderBuffer>; |