[alsa] Fix missing cleanup of failed ALSA sessions

This commit is contained in:
ejurgensen 2017-07-14 23:20:53 +02:00
parent b803c30dcd
commit 3f2ad41094
1 changed files with 4 additions and 1 deletions

View File

@ -811,7 +811,10 @@ alsa_device_start(struct output_device *device, output_status_cb cb, uint64_t rt
ret = device_open(as);
if (ret < 0)
{
alsa_session_cleanup(as);
return -1;
}
as->state = ALSA_STATE_STARTED;
alsa_status(as);