Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/pulse/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,10 @@ static void stream_get_timing_info_callback(pa_pdispatch *pd, uint32_t command,
* total correction.*/
for (n = 0, j = o->stream->current_write_index_correction+1;
n < PA_MAX_WRITE_INDEX_CORRECTIONS;
n++, j = (j + 1) % PA_MAX_WRITE_INDEX_CORRECTIONS) {
n++, j++) {

/* First fix up the index to be within the array */
j = j % PA_MAX_WRITE_INDEX_CORRECTIONS;

/* Step over invalid data or out-of-date data */
if (!o->stream->write_index_corrections[j].valid ||
Expand Down