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

Commit b6b8c975 authored by Dichen Zhang's avatar Dichen Zhang Committed by android-build-merger
Browse files

Merge "libstagefright: encoder must exist when source starting."

am: bceab46b

Change-Id: Idd5eed870f52789b313229ec4913aaf4583fb2ee
parents e57360ff bceab46b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -761,8 +761,8 @@ status_t MediaCodecSource::feedEncoderInputBuffers() {
}

status_t MediaCodecSource::onStart(MetaData *params) {
    if (mStopping) {
        ALOGE("Failed to start while we're stopping");
    if (mStopping || mOutput.lock()->mEncoderReachedEOS) {
        ALOGE("Failed to start while we're stopping or encoder already stopped due to EOS error");
        return INVALID_OPERATION;
    }
    int64_t startTimeUs;