diff options
-rw-r--r-- | media/libstagefright/MediaCodec.cpp | 4 |
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; |