Loading include/media/stagefright/MediaCodec.h +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ private: static void PostReplyWithError(int32_t replyID, int32_t err); status_t init(const char *name, bool nameIsType, bool encoder); status_t init(const AString &name, bool nameIsType, bool encoder); void setState(State newState); void returnBuffersToCodec(); Loading media/libstagefright/MediaCodec.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ void MediaCodec::PostReplyWithError(int32_t replyID, int32_t err) { response->postReply(replyID); } status_t MediaCodec::init(const char *name, bool nameIsType, bool encoder) { status_t MediaCodec::init(const AString &name, bool nameIsType, bool encoder) { // save init parameters for reset mInitName = name; mInitNameIsType = nameIsType; Loading @@ -191,7 +191,7 @@ status_t MediaCodec::init(const char *name, bool nameIsType, bool encoder) { // queue. mCodec = new ACodec; bool needDedicatedLooper = false; if (nameIsType && !strncasecmp(name, "video/", 6)) { if (nameIsType && !strncasecmp(name.c_str(), "video/", 6)) { needDedicatedLooper = true; } else { AString tmp = name; Loading Loading @@ -357,7 +357,7 @@ status_t MediaCodec::reset() { mHaveInputSurface = false; if (err == OK) { err = init(mInitName.c_str(), mInitNameIsType, mInitIsEncoder); err = init(mInitName, mInitNameIsType, mInitIsEncoder); } return err; } Loading Loading
include/media/stagefright/MediaCodec.h +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ private: static void PostReplyWithError(int32_t replyID, int32_t err); status_t init(const char *name, bool nameIsType, bool encoder); status_t init(const AString &name, bool nameIsType, bool encoder); void setState(State newState); void returnBuffersToCodec(); Loading
media/libstagefright/MediaCodec.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ void MediaCodec::PostReplyWithError(int32_t replyID, int32_t err) { response->postReply(replyID); } status_t MediaCodec::init(const char *name, bool nameIsType, bool encoder) { status_t MediaCodec::init(const AString &name, bool nameIsType, bool encoder) { // save init parameters for reset mInitName = name; mInitNameIsType = nameIsType; Loading @@ -191,7 +191,7 @@ status_t MediaCodec::init(const char *name, bool nameIsType, bool encoder) { // queue. mCodec = new ACodec; bool needDedicatedLooper = false; if (nameIsType && !strncasecmp(name, "video/", 6)) { if (nameIsType && !strncasecmp(name.c_str(), "video/", 6)) { needDedicatedLooper = true; } else { AString tmp = name; Loading Loading @@ -357,7 +357,7 @@ status_t MediaCodec::reset() { mHaveInputSurface = false; if (err == OK) { err = init(mInitName.c_str(), mInitNameIsType, mInitIsEncoder); err = init(mInitName, mInitNameIsType, mInitIsEncoder); } return err; } Loading