mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
module-loopback: cancel pending work items when destroying
This commit is contained in:
parent
c52637f783
commit
115be6d5fc
1 changed files with 2 additions and 0 deletions
|
|
@ -263,12 +263,14 @@ static void impl_destroy(struct impl *impl)
|
||||||
pw_properties_free(impl->capture_props);
|
pw_properties_free(impl->capture_props);
|
||||||
if (impl->playback_props)
|
if (impl->playback_props)
|
||||||
pw_properties_free(impl->playback_props);
|
pw_properties_free(impl->playback_props);
|
||||||
|
pw_work_queue_cancel(impl->work, impl, SPA_ID_INVALID);
|
||||||
free(impl);
|
free(impl);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void module_destroy(void *data)
|
static void module_destroy(void *data)
|
||||||
{
|
{
|
||||||
struct impl *impl = data;
|
struct impl *impl = data;
|
||||||
|
impl->unloading = true;
|
||||||
spa_hook_remove(&impl->module_listener);
|
spa_hook_remove(&impl->module_listener);
|
||||||
impl_destroy(impl);
|
impl_destroy(impl);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue