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

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

Merge "Fix extractor plugin parameter handling" into sc-dev

parents 634fd567 fa678bfb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -425,8 +425,7 @@ media_status_t MP3Extractor::getTrackMetaData(
    if (mInitCheck != OK || index != 0) {
        return AMEDIA_ERROR_UNKNOWN;
    }
    AMediaFormat_copy(meta, mMeta);
    return AMEDIA_OK;
    return AMediaFormat_copy(meta, mMeta);
}

////////////////////////////////////////////////////////////////////////////////
+1 −2
Original line number Diff line number Diff line
@@ -640,8 +640,7 @@ media_status_t MPEG4Extractor::getTrackMetaData(
        }
    }

    AMediaFormat_copy(meta, track->meta);
    return AMEDIA_OK;
    return AMediaFormat_copy(meta, track->meta);
}

status_t MPEG4Extractor::readMetaData() {
+3 −0
Original line number Diff line number Diff line
@@ -268,6 +268,9 @@ MediaTrackHelper *MPEG2TSExtractor::getTrack(size_t index) {
media_status_t MPEG2TSExtractor::getTrackMetaData(
        AMediaFormat *meta,
        size_t index, uint32_t /* flags */) {
    if (meta == nullptr) {
        return AMEDIA_ERROR_INVALID_PARAMETER;
    }
    sp<MetaData> implMeta = index < mSourceImpls.size()
        ? mSourceImpls.editItemAt(index)->getFormat() : NULL;
    if (implMeta == NULL) {