0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

linux-pipwire: Pass obs_pw_stream to renegotiation callback

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
This commit is contained in:
Kurt Kartaltepe 2023-10-28 14:15:19 -07:00 committed by Georges Basile Stavracas Neto
parent ed2ade250f
commit 658657de35

View File

@ -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 */