summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-07 20:49:21 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-07 20:49:22 +0000
commita793625031a3e326a261a0843598c35a5784bbde (patch)
treef18a01ac2ead0114a2a46783b3ef79a013fb85e7 /services/audioflinger/Tracks.cpp
parent19f420ea68424a608e982d39ab76676a05337685 (diff)
parent6e0d67d7b496ce17c0970a4ffd3a6f808860949c (diff)
downloadframeworks_av-a793625031a3e326a261a0843598c35a5784bbde.zip
frameworks_av-a793625031a3e326a261a0843598c35a5784bbde.tar.gz
frameworks_av-a793625031a3e326a261a0843598c35a5784bbde.tar.bz2
Merge "Use Format_isValid() and Format_isEqual() instead of direct comparison"
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 8ffa43e..8004b99 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};