Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a221a7c8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "avoid null dereference"

parents afd5242a 522e4318
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -643,7 +643,9 @@ void MediaCodecSource::signalEOS(status_t err) {


    if (mStopping && reachedEOS) {
    if (mStopping && reachedEOS) {
        ALOGI("encoder (%s) stopped", mIsVideo ? "video" : "audio");
        ALOGI("encoder (%s) stopped", mIsVideo ? "video" : "audio");
        if (mPuller != NULL) {
            mPuller->stopSource();
            mPuller->stopSource();
        }
        ALOGV("source (%s) stopped", mIsVideo ? "video" : "audio");
        ALOGV("source (%s) stopped", mIsVideo ? "video" : "audio");
        // posting reply to everyone that's waiting
        // posting reply to everyone that's waiting
        List<sp<AReplyToken>>::iterator it;
        List<sp<AReplyToken>>::iterator it;