[alsa] Fix missing cleanup of failed ALSA sessions
This commit is contained in:
parent
b803c30dcd
commit
3f2ad41094
|
@ -811,7 +811,10 @@ alsa_device_start(struct output_device *device, output_status_cb cb, uint64_t rt
|
||||||
|
|
||||||
ret = device_open(as);
|
ret = device_open(as);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -1;
|
{
|
||||||
|
alsa_session_cleanup(as);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
as->state = ALSA_STATE_STARTED;
|
as->state = ALSA_STATE_STARTED;
|
||||||
alsa_status(as);
|
alsa_status(as);
|
||||||
|
|
Loading…
Reference in New Issue