alsa-seq: close seq device

When we unload, close the seq device again so that the source is
removed from the main loop.
This commit is contained in:
Wim Taymans 2019-11-28 09:55:38 +01:00
parent 8acae9db7d
commit 3131acea46
2 changed files with 18 additions and 4 deletions

View file

@ -815,6 +815,13 @@ static int impl_get_interface(struct spa_handle *handle, uint32_t type, void **i
static int impl_clear(struct spa_handle *handle)
{
struct seq_state *this;
spa_return_val_if_fail(handle != NULL, -EINVAL);
this = (struct seq_state *) handle;
spa_alsa_seq_close(this);
return 0;
}