Skip to content
Snippets Groups Projects
Commit 423f44fd authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Frediano Ziglio
Browse files

gstaudio: replace exisiting channels on connect


There is a race if disconnect/reconnect happen too quickly that the
existing channel isn't yet destroyed, due to the delayed coroutine
handling.

By simply taking the last channel as the current channel, we avoid the
issue having to wait for the previous channel to be destroyed.

Of course, multiple playback/record channels aren't supported anyway at
this point.

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent bcae98e3
1 merge request!127gstaudio: replace exisiting channels on connect
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment