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

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

Merge "libmedia: Fix channelMaskFromString function" into oc-mr1-dev

parents d829543a 592c13ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ audio_format_t formatFromString(const std::string &literalFormat, audio_format_t
audio_channel_mask_t channelMaskFromString(const std::string &literalChannels)
{
    audio_channel_mask_t channels;
    if (!OutputChannelConverter::fromString(literalChannels, channels) ||
    if (!OutputChannelConverter::fromString(literalChannels, channels) &&
            !InputChannelConverter::fromString(literalChannels, channels)) {
        return AUDIO_CHANNEL_INVALID;
    }