commit | 85d109a4b0eddd76a8c5cee170bc2bcc99d00118 | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Fri Jan 17 10:25:08 2014 -0800 |
committer | Glenn Kasten <gkasten@google.com> | Tue Mar 25 15:38:25 2014 -0700 |
tree | 063a73398f17da98b0a9ecc5923ab05bbc3fc5d9 | |
parent | 1392eb3d1802e9f894f87d7a7387207d1b6faca1 [diff] [blame] |
Document AudioSystem::newAudioSessionId() failures Change-Id: Iaa168722f362c36bdfa87fe20dc0a59b43cf1ca3
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 @@ 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(); }