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

Commit bceab46b authored by Dichen Zhang's avatar Dichen Zhang Committed by Gerrit Code Review
Browse files

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

parents ea1a0f03 e44e8aa8
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;