Loading media/libstagefright/MediaCodec.cpp +10 −6 Original line number Diff line number Diff line Loading @@ -722,7 +722,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { mFlags |= kFlagSawMediaServerDie; } bool sendErrorReponse = true; bool sendErrorResponse = true; switch (mState) { case INITIALIZING: Loading @@ -749,7 +749,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { // Ignore the error, assuming we'll still get // the shutdown complete notification. sendErrorReponse = false; sendErrorResponse = false; if (mFlags & kFlagSawMediaServerDie) { // MediaServer died, there definitely won't Loading Loading @@ -780,7 +780,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { case FLUSHED: case STARTED: { sendErrorReponse = false; sendErrorResponse = false; setStickyError(err); postActivityNotificationIfPossible(); Loading @@ -805,7 +805,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { default: { sendErrorReponse = false; sendErrorResponse = false; setStickyError(err); postActivityNotificationIfPossible(); Loading @@ -831,7 +831,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { } } if (sendErrorReponse) { if (sendErrorResponse) { PostReplyWithError(mReplyID, err); } break; Loading Loading @@ -1118,7 +1118,11 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { case CodecBase::kWhatFlushCompleted: { CHECK_EQ(mState, FLUSHING); if (mState != FLUSHING) { ALOGW("received FlushCompleted message in state %d", mState); break; } if (mFlags & kFlagIsAsync) { setState(FLUSHED); Loading Loading
media/libstagefright/MediaCodec.cpp +10 −6 Original line number Diff line number Diff line Loading @@ -722,7 +722,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { mFlags |= kFlagSawMediaServerDie; } bool sendErrorReponse = true; bool sendErrorResponse = true; switch (mState) { case INITIALIZING: Loading @@ -749,7 +749,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { // Ignore the error, assuming we'll still get // the shutdown complete notification. sendErrorReponse = false; sendErrorResponse = false; if (mFlags & kFlagSawMediaServerDie) { // MediaServer died, there definitely won't Loading Loading @@ -780,7 +780,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { case FLUSHED: case STARTED: { sendErrorReponse = false; sendErrorResponse = false; setStickyError(err); postActivityNotificationIfPossible(); Loading @@ -805,7 +805,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { default: { sendErrorReponse = false; sendErrorResponse = false; setStickyError(err); postActivityNotificationIfPossible(); Loading @@ -831,7 +831,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { } } if (sendErrorReponse) { if (sendErrorResponse) { PostReplyWithError(mReplyID, err); } break; Loading Loading @@ -1118,7 +1118,11 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { case CodecBase::kWhatFlushCompleted: { CHECK_EQ(mState, FLUSHING); if (mState != FLUSHING) { ALOGW("received FlushCompleted message in state %d", mState); break; } if (mFlags & kFlagIsAsync) { setState(FLUSHED); Loading