summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MediaCodec.cpp
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-09-23 13:38:04 -0700
committerAndy Hung <hunga@google.com>2014-09-23 13:38:04 -0700
commitbcc1a8299224b35aa2d16cf522d4aa5bcfa1ab60 (patch)
tree4b519d43dda530d71d1c4b6712ac42e3bd4016da /media/libstagefright/MediaCodec.cpp
parent0e7c2156cb646595d6e2f99193cd8b224233ce86 (diff)
downloadframeworks_av-bcc1a8299224b35aa2d16cf522d4aa5bcfa1ab60.zip
frameworks_av-bcc1a8299224b35aa2d16cf522d4aa5bcfa1ab60.tar.gz
frameworks_av-bcc1a8299224b35aa2d16cf522d4aa5bcfa1ab60.tar.bz2
stagefright: Fix MediaCodec::init() AString name usage.
Change-Id: I7f9fcabafd60cba99af6049dc99b1a457db396c4
Diffstat (limited to 'media/libstagefright/MediaCodec.cpp')
-rw-r--r--media/libstagefright/MediaCodec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp
index 0a42ebd..619e6df 100644
--- a/media/libstagefright/MediaCodec.cpp
+++ b/media/libstagefright/MediaCodec.cpp
@@ -191,10 +191,10 @@ status_t MediaCodec::init(const AString &name, bool nameIsType, bool encoder) {
// we need to invest in an extra looper to free the main event
// queue.
- if (nameIsType || !strncasecmp(name, "omx.", 4)) {
+ if (nameIsType || !strncasecmp(name.c_str(), "omx.", 4)) {
mCodec = new ACodec;
} else if (!nameIsType
- && !strncasecmp(name, "android.filter.", 15)) {
+ && !strncasecmp(name.c_str(), "android.filter.", 15)) {
mCodec = new MediaFilter;
} else {
return NAME_NOT_FOUND;