Commit ec63db2b authored by shans's avatar shans

Reset last page granulepos of all streams on every raw seek



git-svn-id: http://svn.annodex.net/liboggz/trunk@3003 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 3cdbd742
......@@ -95,12 +95,21 @@ oggz_tell_raw (OGGZ * oggz)
/*
* seeks and syncs
*/
int
oggz_seek_reset_stream(void *data) {
((oggz_stream_t *)data)->last_granulepos = -1;
return 0;
}
static oggz_off_t
oggz_seek_raw (OGGZ * oggz, oggz_off_t offset, int whence)
{
OggzReader * reader = &oggz->x.reader;
oggz_off_t offset_at;
oggz_vector_foreach(oggz->streams, oggz_seek_reset_stream);
if (oggz_io_seek (oggz, offset, whence) == -1) {
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment