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

Commit 3cebe702 authored by Tomoharu Kasahara's avatar Tomoharu Kasahara Committed by android-build-merger
Browse files

Merge "Use channel count for CHANNEL_MASK_USE_CHANNEL_ORDER"

am: 413b0b22

Change-Id: Id45e0113abb655afea7fa1f5ce63354ed27c1f3f
parents 435f7eda 413b0b22
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