alsa: Move ctl sources to a main loop

It doesn't make sense to hang these on the data loop, so let's have
these on the main loop instead. Also avoids a potential crash while
removing them (since removal happens on the main loop and the data loop
might be polling while we're doing the remove).
This commit is contained in:
Arun Raghavan 2023-11-21 17:05:24 -05:00 committed by Wim Taymans
parent bb82ddb601
commit dec1102574
4 changed files with 13 additions and 2 deletions

View file

@ -105,6 +105,7 @@ struct state {
struct spa_log *log;
struct spa_system *data_system;
struct spa_loop *data_loop;
struct spa_loop *main_loop;
FILE *log_file;
struct spa_ratelimit rate_limit;