summaryrefslogtreecommitdiffstats
path: root/include/private/media/StaticAudioTrackState.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-28 11:03:28 -0800
committerGlenn Kasten <gkasten@google.com>2014-01-28 20:06:35 +0000
commitfdac7c00f9201bb3a9862069145f01d37e39755b (patch)
treef82c52ff982030d0b1c4d7ea75a987300393c7b3 /include/private/media/StaticAudioTrackState.h
parent9be49c915852b592a881be3905658e4fc698749d (diff)
downloadframeworks_av-fdac7c00f9201bb3a9862069145f01d37e39755b.zip
frameworks_av-fdac7c00f9201bb3a9862069145f01d37e39755b.tar.gz
frameworks_av-fdac7c00f9201bb3a9862069145f01d37e39755b.tar.bz2
Replace size_t in shared memory by uint32_t
Eventually we may want to use uint64_t, but will need to confirm atomicity. Bug: 12381724 Change-Id: Ia2c591d262d22b47b6f7dab4b9d9faa14b86d865
Diffstat (limited to 'include/private/media/StaticAudioTrackState.h')
-rw-r--r--include/private/media/StaticAudioTrackState.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/private/media/StaticAudioTrackState.h b/include/private/media/StaticAudioTrackState.h
index 46a5946..d483061 100644
--- a/include/private/media/StaticAudioTrackState.h
+++ b/include/private/media/StaticAudioTrackState.h
@@ -25,9 +25,13 @@ namespace android {
// state is wrapped by a SingleStateQueue.
struct StaticAudioTrackState {
// do not define constructors, destructors, or virtual methods
- size_t mLoopStart;
- size_t mLoopEnd;
- int mLoopCount;
+
+ // These fields should both be size_t, but since they are located in shared memory we
+ // force to 32-bit. The client and server may have different typedefs for size_t.
+ uint32_t mLoopStart;
+ uint32_t mLoopEnd;
+
+ int mLoopCount;
};
} // namespace android