Skip to content

Commit

Permalink
player: more robust seq_t handling
Browse files Browse the repository at this point in the history
  • Loading branch information
abrasive committed Apr 8, 2013
1 parent 9bfa48f commit a9c4087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void player_put_packet(seq_t seqno, uint8_t *data, int len) {
ab_read = seqno;
ab_synced = 1;
}
if (seqno == ab_write+1) { // expected packet
if (seq_diff(ab_write, seqno) == 1) { // expected packet
abuf = audio_buffer + BUFIDX(seqno);
ab_write = seqno;
} else if (seq_order(ab_write, seqno)) { // newer than expected
Expand Down

0 comments on commit a9c4087

Please sign in to comment.