diff options
author | Glenn Kasten <gkasten@google.com> | 2014-01-17 19:15:57 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-01-17 19:15:57 +0000 |
commit | 0ce5ca5e113d58cbcb7cb48615d6dbbf3fbe7c66 (patch) | |
tree | b5f59ae15e5f5ea59a171f7677e2a8403361f80a /services/audioflinger/AudioFlinger.cpp | |
parent | d0b33f63a9364364a827e77da26b112edf3c4d6e (diff) | |
parent | 0cde076ddb283c84c3801a2df4cc3df99bd1577f (diff) | |
download | frameworks_av-0ce5ca5e113d58cbcb7cb48615d6dbbf3fbe7c66.zip frameworks_av-0ce5ca5e113d58cbcb7cb48615d6dbbf3fbe7c66.tar.gz frameworks_av-0ce5ca5e113d58cbcb7cb48615d6dbbf3fbe7c66.tar.bz2 |
Merge "Cleanup createTrack error handling"
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 780ecf1..1257161 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -559,6 +559,7 @@ sp<IAudioTrack> AudioFlinger::createTrack( track = thread->createTrack_l(client, streamType, sampleRate, format, channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, clientUid, &lStatus); + LOG_ALWAYS_FATAL_IF((track != 0) != (lStatus == NO_ERROR)); // we don't abort yet if lStatus != NO_ERROR; there is still work to be done regardless // move effect chain to this output thread if an effect on same session was waiting |