Commit 98cb2fe6 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

QSA soundcard: close audio manager in case of setup failure

parent 499fa8a7
......@@ -275,6 +275,10 @@ setup_failure:
snd_pcm_close(d->handle);
d->handle = NULL;
}
if (d->audioman_handle != NULL) {
audio_manager_free_handle(d->audioman_handle);
d->audioman_handle = NULL;
}
}
static void ms_qsa_read_postprocess(MSFilter *f) {
......@@ -612,6 +616,10 @@ setup_failure:
snd_pcm_close(d->handle);
d->handle = NULL;
}
if (d->audioman_handle != NULL) {
audio_manager_free_handle(d->audioman_handle);
d->audioman_handle = NULL;
}
ms_queue_flush(f->inputs[0]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment