diff options
author | Glenn Kasten <gkasten@google.com> | 2013-06-26 09:25:47 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-12-20 12:30:29 -0800 |
commit | aea7ea06394bcb155972d82055d4ea59962e4051 (patch) | |
tree | dd806ad4f77dc62e4fbd0b88022ee5b8b2403802 /media/libmedia/IAudioFlinger.cpp | |
parent | bd72d22097f78f5bd668b223bc8c94e351311e31 (diff) | |
download | frameworks_av-aea7ea06394bcb155972d82055d4ea59962e4051.zip frameworks_av-aea7ea06394bcb155972d82055d4ea59962e4051.tar.gz frameworks_av-aea7ea06394bcb155972d82055d4ea59962e4051.tar.bz2 |
Use AUDIO_SESSION_ALLOCATE instead of 0
Also fix a couple of places where we were using AUDIO_SESSION_OUTPUT_MIX,
which happens to also be equal to 0, but has a different meaning.
Change-Id: I90e39be3b89f5021a96d9e3b8d10929013ca977f
Diffstat (limited to 'media/libmedia/IAudioFlinger.cpp')
-rw-r--r-- | media/libmedia/IAudioFlinger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmedia/IAudioFlinger.cpp b/media/libmedia/IAudioFlinger.cpp index 9df10f0..c9c8d58 100644 --- a/media/libmedia/IAudioFlinger.cpp +++ b/media/libmedia/IAudioFlinger.cpp @@ -117,7 +117,7 @@ public: } data.writeInt32((int32_t) output); data.writeInt32((int32_t) tid); - int lSessionId = 0; + int lSessionId = AUDIO_SESSION_ALLOCATE; if (sessionId != NULL) { lSessionId = *sessionId; } @@ -167,7 +167,7 @@ public: track_flags_t lFlags = flags != NULL ? *flags : (track_flags_t) TRACK_DEFAULT; data.writeInt32(lFlags); data.writeInt32((int32_t) tid); - int lSessionId = 0; + int lSessionId = AUDIO_SESSION_ALLOCATE; if (sessionId != NULL) { lSessionId = *sessionId; } |