Commit 106dc009acb27f6bcfb61aa34eb30001beec2926

Frank Praznik 2021-02-19T17:18:36

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>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/pipewire/SDL_pipewire.c b/src/audio/pipewire/SDL_pipewire.c
index d7b40ec..220847e 100644
--- a/src/audio/pipewire/SDL_pipewire.c
+++ b/src/audio/pipewire/SDL_pipewire.c
@@ -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;