diff options
author | Glenn Kasten <gkasten@google.com> | 2014-01-16 15:06:36 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-01-16 17:01:04 -0800 |
commit | 0cde076ddb283c84c3801a2df4cc3df99bd1577f (patch) | |
tree | 9f1d49f9fc52a5cedea8e0bd14555a70ab5772b0 /services/audioflinger/AudioFlinger.cpp | |
parent | a238b9b43a2b8dac60e0fd8700daa6cd4f644547 (diff) | |
download | frameworks_av-0cde076ddb283c84c3801a2df4cc3df99bd1577f.zip frameworks_av-0cde076ddb283c84c3801a2df4cc3df99bd1577f.tar.gz frameworks_av-0cde076ddb283c84c3801a2df4cc3df99bd1577f.tar.bz2 |
Cleanup createTrack error handling
Similar to cleanup done earlier for openRecord in this CL:
> Change-Id: I84897dd7d30b370640b54e928f230604b873cb68
Bug: 10888816
Change-Id: I804a47f898e0319a60a9bd58906bbb037e45cc25
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 34811a7..1340a56 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 |