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

Commit 413b0b22 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Use channel count for CHANNEL_MASK_USE_CHANNEL_ORDER"

parents 4d16ee4f a6132928
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1718,7 +1718,7 @@ bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo,
    info.sample_rate = srate;

    int32_t cmask = 0;
    if (!meta->findInt32(kKeyChannelMask, &cmask)) {
    if (!meta->findInt32(kKeyChannelMask, &cmask) || cmask == CHANNEL_MASK_USE_CHANNEL_ORDER) {
        ALOGV("track of type '%s' does not publish channel mask", mime);

        // Try a channel count instead