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

Commit 92047ec3 authored by Marco Nelissen's avatar Marco Nelissen Committed by Gerrit Code Review
Browse files

Merge "Fix issues with metadata handling when format change happens"

parents 4065e775 c3fe699d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -228,6 +228,10 @@ sp<AMessage> NuPlayer::StreamingSource::getFormat(bool audio) {
    }

    sp<MetaData> meta = source->getFormat();
    if (meta == NULL) {
        format->setInt32("err", -EWOULDBLOCK);
        return format;
    }
    status_t err = convertMetaDataToMessage(meta, &format);
    if (err != OK) {
        format->setInt32("err", err);