mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
[alsa] Fix missing unsubscription when closing session (ref. #866)
This commit is contained in:
@@ -494,6 +494,10 @@ playback_session_free(struct alsa_playback_session *pb)
|
|||||||
if (!pb)
|
if (!pb)
|
||||||
return;
|
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);
|
pcm_close(pb->pcm);
|
||||||
|
|
||||||
ringbuffer_free(&pb->prebuf, 1);
|
ringbuffer_free(&pb->prebuf, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user