diff options
author | Lajos Molnar <lajos@google.com> | 2014-08-12 08:55:25 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-08-12 16:30:40 +0000 |
commit | 2461e0cf6ae3fe5c9b52ce9e3ac764f4aff5e5eb (patch) | |
tree | 449c2a4029cc6e8048b9d9d373078e5830bd9404 /media/libmedia | |
parent | e7a1737c92cf2e84754ffbc52cfec8edeffcbc75 (diff) | |
download | frameworks_av-2461e0cf6ae3fe5c9b52ce9e3ac764f4aff5e5eb.zip frameworks_av-2461e0cf6ae3fe5c9b52ce9e3ac764f4aff5e5eb.tar.gz frameworks_av-2461e0cf6ae3fe5c9b52ce9e3ac764f4aff5e5eb.tar.bz2 |
MediaCodecList: don't return references
Bug: 16905025
Change-Id: I5b42b294f0cc785b8e4dda0e82c8f8377a46f487
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/MediaCodecInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmedia/MediaCodecInfo.cpp b/media/libmedia/MediaCodecInfo.cpp index 7900eae..5ea0519 100644 --- a/media/libmedia/MediaCodecInfo.cpp +++ b/media/libmedia/MediaCodecInfo.cpp @@ -46,7 +46,7 @@ uint32_t MediaCodecInfo::Capabilities::getFlags() const { return mFlags; } -const sp<AMessage> &MediaCodecInfo::Capabilities::getDetails() const { +const sp<AMessage> MediaCodecInfo::Capabilities::getDetails() const { return mDetails; } @@ -121,7 +121,7 @@ void MediaCodecInfo::getSupportedMimes(Vector<AString> *mimes) const { } } -const sp<MediaCodecInfo::Capabilities> & +const sp<MediaCodecInfo::Capabilities> MediaCodecInfo::getCapabilitiesFor(const char *mime) const { ssize_t ix = getCapabilityIndex(mime); if (ix >= 0) { |