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

Commit c8c88cc6 authored by Chong Zhang's avatar Chong Zhang
Browse files

transcoder: fix error returned failed configure

This caused transcoder to continue even after configure failed,
and the actual error code was lost.

bug: 168307955
bug: 154733526
Change-Id: I30f32fe090600d23e40c440ac99e01a6b396e23f
parent ffebb80b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -282,7 +282,7 @@ media_status_t MediaTranscoder::configureTrackFormat(size_t trackIndex, AMediaFo
        format = std::shared_ptr<AMediaFormat>(mergedFormat, &AMediaFormat_delete);
    }

    transcoder->configure(mSampleReader, trackIndex, format);
    status = transcoder->configure(mSampleReader, trackIndex, format);
    if (status != AMEDIA_OK) {
        LOG(ERROR) << "Configure track transcoder for track #" << trackIndex << " returned error "
                   << status;