mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
v4l2: fix crash when unplugging
Only remove the v4l2 fd once on disconnect Make sure we don't use the clock anymore when a link is destroyed.
This commit is contained in:
parent
16b6a51b78
commit
49afacd66f
2 changed files with 7 additions and 2 deletions
|
|
@ -1288,6 +1288,9 @@ void pw_link_destroy(struct pw_link *link)
|
|||
if (link->registered)
|
||||
spa_list_remove(&link->link);
|
||||
|
||||
if (link->output->node->clock == link->input->node->clock)
|
||||
link->input->node->clock = NULL;
|
||||
|
||||
input_remove(link, link->input);
|
||||
|
||||
output_remove(link, link->output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue