[alsa] Fix missing unsubscription when closing session (ref. #866)

This commit is contained in:
ejurgensen 2019-12-27 11:29:36 +01:00
parent 0c08e83811
commit 251080344e

View File

@ -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);