summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Kartaltepe <kkartaltepe@gmail.com>2023-10-28 14:15:19 -0700
committerRyan Foster <ryan@obsproject.com>2023-10-28 18:03:54 -0400
commit18dd416ee4d3c1618f6c5c528c52b92dff27a991 (patch)
tree5a52353dfca04c0ed86c9827446709fd318b75c7
parent59ff2b0cb2020d3d24daa370701ee76600af16f9 (diff)
linux-pipwire: Pass obs_pw_stream to renegotiation callback30.0.0-rc2
We were passing the core pipewire pointer where renegotiation expected the stream pointer. Somehow this worked, probably because the two are very close. fixes #9733 (cherry picked from commit 658657de35ba4359668455ac25c2a2b35d43abf9)
-rw-r--r--plugins/linux-pipewire/pipewire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/linux-pipewire/pipewire.c b/plugins/linux-pipewire/pipewire.c
index cb4dc8b99..f203d3e37 100644
--- a/plugins/linux-pipewire/pipewire.c
+++ b/plugins/linux-pipewire/pipewire.c
@@ -1244,7 +1244,7 @@ obs_pipewire_connect_stream(obs_pipewire *obs_pw, obs_source_t *source,
/* Signal to renegotiate */
obs_pw_stream->reneg =
pw_loop_add_event(pw_thread_loop_get_loop(obs_pw->thread_loop),
- renegotiate_format, obs_pw);
+ renegotiate_format, obs_pw_stream);
blog(LOG_DEBUG, "[pipewire] registered event %p", obs_pw_stream->reneg);
/* Stream */