summaryrefslogtreecommitdiffstats
path: root/media/libnbaio/Pipe.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-31 09:37:35 -0800
committerGlenn Kasten <gkasten@google.com>2014-01-31 10:53:38 -0800
commit72e54af9fcdc4754914fe2bf8de699523538b315 (patch)
tree7fe0f7ca51dbaff80125ea7b12a7a0cc052315e0 /media/libnbaio/Pipe.cpp
parente983e0a0017fce81dc3d9bea36f5abb7b7bce40b (diff)
downloadframeworks_av-72e54af9fcdc4754914fe2bf8de699523538b315.zip
frameworks_av-72e54af9fcdc4754914fe2bf8de699523538b315.tar.gz
frameworks_av-72e54af9fcdc4754914fe2bf8de699523538b315.tar.bz2
Use const NBAIO_Format& in parameter lists
This is in preparation for changing the typedef to a struct. Change-Id: I8d73a6b29580c65105afd78f24db7e2f4a1eb872
Diffstat (limited to 'media/libnbaio/Pipe.cpp')
-rw-r--r--media/libnbaio/Pipe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libnbaio/Pipe.cpp b/media/libnbaio/Pipe.cpp
index 1c21f9c..115f311 100644
--- a/media/libnbaio/Pipe.cpp
+++ b/media/libnbaio/Pipe.cpp
@@ -25,7 +25,7 @@
namespace android {
-Pipe::Pipe(size_t maxFrames, NBAIO_Format format) :
+Pipe::Pipe(size_t maxFrames, const NBAIO_Format& format) :
NBAIO_Sink(format),
mMaxFrames(roundup(maxFrames)),
mBuffer(malloc(mMaxFrames * Format_frameSize(format))),