summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-31 09:41:08 -0800
committerGlenn Kasten <gkasten@google.com>2014-02-03 17:10:57 -0800
commit6e0d67d7b496ce17c0970a4ffd3a6f808860949c (patch)
treee9d0c68908bcbbcb3eb5ef28b2b2c0db5488fa39 /services/audioflinger/Tracks.cpp
parentcc1e0e807ee9a9f163a4685cbd6efd6ae55849cf (diff)
downloadframeworks_av-6e0d67d7b496ce17c0970a4ffd3a6f808860949c.zip
frameworks_av-6e0d67d7b496ce17c0970a4ffd3a6f808860949c.tar.gz
frameworks_av-6e0d67d7b496ce17c0970a4ffd3a6f808860949c.tar.bz2
Use Format_isValid() and Format_isEqual() instead of direct comparison
Change-Id: Ie87607aa514976947540a77775e6425c4e56e7d9
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index d8d7790..19e715a 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -146,7 +146,7 @@ AudioFlinger::ThreadBase::TrackBase::TrackBase(
#ifdef TEE_SINK
if (mTeeSinkTrackEnabled) {
NBAIO_Format pipeFormat = Format_from_SR_C(mSampleRate, mChannelCount);
- if (pipeFormat != Format_Invalid) {
+ if (Format_isValid(pipeFormat)) {
Pipe *pipe = new Pipe(mTeeSinkTrackFrames, pipeFormat);
size_t numCounterOffers = 0;
const NBAIO_Format offers[1] = {pipeFormat};