Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 098b883a authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: set errorCallback user data



Without this, a nullptr could be passed to the callback instead of
userData.

Bug: 37873111
Test: difficult to test because it requires an error to occur.
Change-Id: I3f262410e0465a8192da2494cadfdb4f8d2188a7
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent 6f85f653
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ aaudio_result_t AudioStream::open(const AudioStreamBuilder& builder)
    mDataCallbackProc = builder.getDataCallbackProc();
    mErrorCallbackProc = builder.getErrorCallbackProc();
    mDataCallbackUserData = builder.getDataCallbackUserData();
    mErrorCallbackUserData = builder.getErrorCallbackUserData();

    // This is very helpful for debugging in the future.
    ALOGI("AudioStream.open(): rate = %d, channels = %d, format = %d, sharing = %d",