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

Commit 0aeb9483 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "libstagefright: Call encoder release first"

parents 0571b380 1db7192b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -189,9 +189,6 @@ void MediaCodecSource::Puller::stop() {
        queue->flush(); // flush any unprocessed pulled buffers
    }

    if (interrupt) {
        interruptSource();
    }
}

void MediaCodecSource::Puller::interruptSource() {
@@ -972,12 +969,13 @@ void MediaCodecSource::onMessageReceived(const sp<AMessage> &msg) {
             break;
        }

        signalEOS();

        if (!(mFlags & FLAG_USE_SURFACE_INPUT)) {
            ALOGV("source (%s) stopping", mIsVideo ? "video" : "audio");
            mPuller->interruptSource();
            ALOGV("source (%s) stopped", mIsVideo ? "video" : "audio");
        }
        signalEOS();
    }

    case kWhatPause: