modules: make sure we increment the n_frames correctly

This commit is contained in:
Wim Taymans 2023-08-01 12:53:35 +02:00
parent 1cb17c05e9
commit 8a72310f0b

View file

@ -209,8 +209,9 @@ static void vban_audio_flush_packets(struct impl *impl)
timestamp += tosend;
avail -= tosend;
impl->header.n_frames++;
header.n_frames++;
}
impl->header.n_frames = header.n_frames;
spa_ringbuffer_read_update(&impl->ring, timestamp);
}