Permalink
Browse files

Mozilla #516323: reset packetno after seek(0)

patch by Chris Pearce

When resetting the decoder, reset the packetno so that the next
packets read are treated as headers.
  • Loading branch information...
1 parent 2be07f5 commit 12e315f096d293f8b8752cbdb607489d122346d8 @kfish committed Sep 15, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/libfishsound/vorbis.c
@@ -411,6 +411,8 @@ fs_vorbis_reset (FishSound * fsound)
vorbis_block_init (&fsv->vd, &fsv->vb);
+ fsv->packetno = 0;
+
return 0;
}

0 comments on commit 12e315f

Please sign in to comment.