summaryrefslogtreecommitdiffstats
path: root/media/libmedia/AudioSystem.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-17 10:25:08 -0800
committerGlenn Kasten <gkasten@google.com>2014-03-25 15:38:25 -0700
commit85d109a4b0eddd76a8c5cee170bc2bcc99d00118 (patch)
tree063a73398f17da98b0a9ecc5923ab05bbc3fc5d9 /media/libmedia/AudioSystem.cpp
parent1392eb3d1802e9f894f87d7a7387207d1b6faca1 (diff)
downloadframeworks_av-85d109a4b0eddd76a8c5cee170bc2bcc99d00118.zip
frameworks_av-85d109a4b0eddd76a8c5cee170bc2bcc99d00118.tar.gz
frameworks_av-85d109a4b0eddd76a8c5cee170bc2bcc99d00118.tar.bz2
Document AudioSystem::newAudioSessionId() failures
Change-Id: Iaa168722f362c36bdfa87fe20dc0a59b43cf1ca3
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r--media/libmedia/AudioSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp
index 140fb66..c418466 100644
--- a/media/libmedia/AudioSystem.cpp
+++ b/media/libmedia/AudioSystem.cpp
@@ -431,7 +431,7 @@ uint32_t AudioSystem::getInputFramesLost(audio_io_handle_t ioHandle)
int AudioSystem::newAudioSessionId()
{
const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger();
- if (af == 0) return 0;
+ if (af == 0) return AUDIO_SESSION_ALLOCATE;
return af->newAudioSessionId();
}