summaryrefslogtreecommitdiffstats
path: root/media/base/buffers.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/buffers.h')
-rw-r--r--media/base/buffers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/base/buffers.h b/media/base/buffers.h
index 27ad130..6102ea9 100644
--- a/media/base/buffers.h
+++ b/media/base/buffers.h
@@ -100,6 +100,9 @@ class Buffer : public StreamSample {
// If there's no data in this buffer, it represents end of stream.
virtual bool IsEndOfStream() const { return GetData() == NULL; }
+
+ protected:
+ virtual ~Buffer() {}
};
@@ -114,6 +117,9 @@ class WritableBuffer : public Buffer {
// Returns the size of the underlying buffer.
virtual size_t GetBufferSize() const = 0;
+
+ protected:
+ virtual ~WritableBuffer() {}
};