Skip to content

Commit

Permalink
Stop the pipewire loop before destroying the stream
Browse files Browse the repository at this point in the history
Should fix #1305
  • Loading branch information
mawe42 committed Mar 26, 2024
1 parent eabae3b commit 50db42a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/drivers/fluid_pipewire.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ void delete_fluid_pipewire_audio_driver(fluid_audio_driver_t *p)
fluid_pipewire_audio_driver_t *drv = (fluid_pipewire_audio_driver_t *)p;
fluid_return_if_fail(drv);

if (drv->pw_loop)
{
pw_thread_loop_stop(drv->pw_loop);
}

if(drv->pw_stream)
{
pw_stream_destroy(drv->pw_stream);
Expand Down

0 comments on commit 50db42a

Please sign in to comment.