diff options
-rw-r--r-- | include/media/MediaCodecInfo.h | 4 | ||||
-rw-r--r-- | media/libmedia/MediaCodecInfo.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/media/MediaCodecInfo.h b/include/media/MediaCodecInfo.h index 29315ce..b4916af 100644 --- a/include/media/MediaCodecInfo.h +++ b/include/media/MediaCodecInfo.h @@ -45,7 +45,7 @@ struct MediaCodecInfo : public RefBase { void getSupportedProfileLevels(Vector<ProfileLevel> *profileLevels) const; void getSupportedColorFormats(Vector<uint32_t> *colorFormats) const; uint32_t getFlags() const; - const sp<AMessage> &getDetails() const; + const sp<AMessage> getDetails() const; private: Vector<ProfileLevel> mProfileLevels; @@ -67,7 +67,7 @@ struct MediaCodecInfo : public RefBase { bool isEncoder() const; bool hasQuirk(const char *name) const; void getSupportedMimes(Vector<AString> *mimes) const; - const sp<Capabilities> &getCapabilitiesFor(const char *mime) const; + const sp<Capabilities> getCapabilitiesFor(const char *mime) const; const char *getCodecName() const; /** 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) { |