Seeking wasn't actully quite correct: make it seek to the right place
commit45ed9c24c51c97bda88c55a974e0f6ba1f9401c6
authorNicolas Pennequin <nicolas@nicolas-laptop.(none)>
Wed, 10 Oct 2007 19:09:41 +0000 (10 21:09 +0200)
committerlearman <learman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 25 Oct 2007 19:18:20 +0000 (25 19:18 +0000)
tree949eac6ce35df71ff092877c737dff16f8deb0da
parent56959a87f4dac49d59ef01f974f00d8101d65ea0
Seeking wasn't actully quite correct: make it seek to the right place

Without a call to lseek, we were just going on to buffer the same data and
couldn't possibly seek correctly.
Also move the h->ridx modification to bufadvance for consistency.

There is still a slight drift when seeking (tested on MP3 files, so it
might just be imprecise seeking in the codec).
apps/buffering.c