audio: pipewire: Pass proper parameter to user audio callback

The audio callbacks should pass the callbackspec.userdata parameter to the callback, not spec.userdata

Co-authored-by: Oschowa <Oschowa@web.de>
This commit is contained in:
Frank Praznik 2021-02-19 17:18:36 -05:00 committed by Sam Lantinga
parent f3ebbc06d3
commit 106dc009ac
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ output_callback(void *data)
if (!SDL_AtomicGet(&this->paused)) {
if (!this->stream) {
SDL_LockMutex(this->mixer_lock);
this->callbackspec.callback(this->spec.userdata, dst, this->callbackspec.size);
this->callbackspec.callback(this->callbackspec.userdata, dst, this->callbackspec.size);
SDL_UnlockMutex(this->mixer_lock);
} else {
int got;