Skip to content

Commit

Permalink
player: fix missing frame at stream startup
Browse files Browse the repository at this point in the history
  • Loading branch information
abrasive committed Apr 8, 2013
1 parent 9251659 commit 9a041f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions player.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ void player_put_packet(seq_t seqno, uint8_t *data, int len) {

pthread_mutex_lock(&ab_mutex);
if (!ab_synced) {
ab_write = seqno;
ab_read = seqno-1;
debug(2, "syncing to first seqno %04X\n", seqno);
ab_write = seqno-1;
ab_read = seqno;
ab_synced = 1;
}
if (seqno == ab_write+1) { // expected packet
Expand Down

0 comments on commit 9a041f2

Please sign in to comment.