mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 16:03:23 -05:00
[alsa] Fix missing unsubscription when closing session (ref. #866)
This commit is contained in:
parent
0c08e83811
commit
251080344e
@ -494,6 +494,10 @@ playback_session_free(struct alsa_playback_session *pb)
|
||||
if (!pb)
|
||||
return;
|
||||
|
||||
// Unsubscribe from qualities that sync_correct() might have requested
|
||||
if (pb->sync_resample_step != 0)
|
||||
outputs_quality_unsubscribe(&pb->quality);
|
||||
|
||||
pcm_close(pb->pcm);
|
||||
|
||||
ringbuffer_free(&pb->prebuf, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user