Commit 9107ca21 authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

pipewire: Disconnect and destroy stream before loop

Otherwise it doesn't signal the daemon about the stream exiting.
parent 6869770e
......@@ -207,10 +207,12 @@ teardown_pipewire (obs_pipewire_data *xdg)
maybe_queue_buffer (xdg);
if (xdg->stream)
pw_stream_disconnect (xdg->stream);
g_clear_pointer (&xdg->stream, pw_stream_destroy);
if (xdg->thread_loop)
pw_thread_loop_stop (xdg->thread_loop);
g_clear_pointer (&xdg->stream, pw_stream_destroy);
g_clear_pointer (&xdg->thread_loop, pw_thread_loop_destroy);
xdg->negotiated = false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment