alsa-plugin: store the right value in last_seq

last_seq needs to contain the last received seq, not the last one that
we requested to sync on.
This commit is contained in:
Wim Taymans 2021-10-08 09:21:32 +02:00
parent 3f6521819f
commit cefcc2e874

View file

@ -1211,7 +1211,7 @@ static void on_core_done(void *data, uint32_t id, int seq)
if (id != PW_ID_CORE)
return;
ctl->last_seq = ctl->pending_seq;
ctl->last_seq = seq;
if (seq == ctl->pending_seq) {
pipewire_update_volume(ctl);
pw_thread_loop_signal(ctl->mainloop, false);