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

Commit 26976984 authored by Dave Burke's avatar Dave Burke
Browse files

Add logging for invalid channel count or sample rate.

Change-Id: I2e2145e4b258923cf6c2907106345b7172c12280
parent 29864609
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -179,6 +179,9 @@ OMX_ERRORTYPE SoftAAC2::internalGetParameter(
                pcmParams->nSamplingRate = mStreamInfo->sampleRate;
            }

            if (!pcmParams->nChannels) ALOGW("Audio contains 0 channels");
            if (!pcmParams->nSamplingRate) ALOGW("Sampling rate of 0 Hz");

            return OMX_ErrorNone;
        }