alsa: update the offset after each copy

This commit is contained in:
Wim Taymans 2018-03-14 11:19:44 +01:00
parent 8cadcd7f56
commit 187b6d4bf9

View file

@ -406,6 +406,7 @@ pull_frames(struct state *state,
}
total_frames += n_frames;
to_write -= n_frames;
offset += n_frames;
spa_log_trace(state->log, "alsa-util %p: written %lu frames, left %ld",
state, total_frames, to_write);