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

Commit 75efb617 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

am: 3cebe702

Change-Id: Iaed34008782d119a4439a27d22d5b796917fc0b9
parents 54163af6 3cebe702
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