diff options
author | James Dong <jdong@google.com> | 2011-05-09 11:36:53 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-05-09 11:36:53 -0700 |
commit | 4650ff0e86f9e815e3152a806a06c700418d071d (patch) | |
tree | cd935b7ff3b644329648f2c3af1278fffe0b720e /media/libstagefright | |
parent | 43ec1dfc5dc3934680a52a026c5519ddc51bdbd3 (diff) | |
download | frameworks_av-4650ff0e86f9e815e3152a806a06c700418d071d.zip frameworks_av-4650ff0e86f9e815e3152a806a06c700418d071d.tar.gz frameworks_av-4650ff0e86f9e815e3152a806a06c700418d071d.tar.bz2 |
Add const to the finders method in MetaData.cpp
o also fixed the MPEG4Writer writeFtypBox() to take a const pointer to MetaData
Change-Id: Iaecdbe6aeab345f6dc72aac0d19f9704b6e0d28a
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/MPEG4Writer.cpp | 2 | ||||
-rw-r--r-- | media/libstagefright/MetaData.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/media/libstagefright/MPEG4Writer.cpp b/media/libstagefright/MPEG4Writer.cpp index e3c7eb9..9ed08a3 100644 --- a/media/libstagefright/MPEG4Writer.cpp +++ b/media/libstagefright/MPEG4Writer.cpp @@ -727,7 +727,7 @@ void MPEG4Writer::writeMoovBox(int64_t durationUs) { endBox(); // moov } -void MPEG4Writer::writeFtypBox(MetaData *param) { +void MPEG4Writer::writeFtypBox(const MetaData *param) { beginBox("ftyp"); int32_t fileType; diff --git a/media/libstagefright/MetaData.cpp b/media/libstagefright/MetaData.cpp index 884f3b4..aac94a6 100644 --- a/media/libstagefright/MetaData.cpp +++ b/media/libstagefright/MetaData.cpp @@ -83,7 +83,7 @@ bool MetaData::setRect( return setData(key, TYPE_RECT, &r, sizeof(r)); } -bool MetaData::findCString(uint32_t key, const char **value) { +bool MetaData::findCString(uint32_t key, const char **value) const { uint32_t type; const void *data; size_t size; @@ -96,7 +96,7 @@ bool MetaData::findCString(uint32_t key, const char **value) { return true; } -bool MetaData::findInt32(uint32_t key, int32_t *value) { +bool MetaData::findInt32(uint32_t key, int32_t *value) const { uint32_t type; const void *data; size_t size; @@ -111,7 +111,7 @@ bool MetaData::findInt32(uint32_t key, int32_t *value) { return true; } -bool MetaData::findInt64(uint32_t key, int64_t *value) { +bool MetaData::findInt64(uint32_t key, int64_t *value) const { uint32_t type; const void *data; size_t size; @@ -126,7 +126,7 @@ bool MetaData::findInt64(uint32_t key, int64_t *value) { return true; } -bool MetaData::findFloat(uint32_t key, float *value) { +bool MetaData::findFloat(uint32_t key, float *value) const { uint32_t type; const void *data; size_t size; @@ -141,7 +141,7 @@ bool MetaData::findFloat(uint32_t key, float *value) { return true; } -bool MetaData::findPointer(uint32_t key, void **value) { +bool MetaData::findPointer(uint32_t key, void **value) const { uint32_t type; const void *data; size_t size; @@ -159,7 +159,7 @@ bool MetaData::findPointer(uint32_t key, void **value) { bool MetaData::findRect( uint32_t key, int32_t *left, int32_t *top, - int32_t *right, int32_t *bottom) { + int32_t *right, int32_t *bottom) const { uint32_t type; const void *data; size_t size; |