Implement rebuffering for seeking outside of buffered data boudaries
commit56959a87f4dac49d59ef01f974f00d8101d65ea0
authorNicolas Pennequin <nicolas@nicolas-laptop.(none)>
Tue, 9 Oct 2007 23:36:15 +0000 (10 01:36 +0200)
committerlearman <learman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 25 Oct 2007 19:18:20 +0000 (25 19:18 +0000)
tree751e52c929d4e0b54e8ae88963139c85bce328fc
parent7dc8b771686d268b8291b18651f562d2e53159e7
Implement rebuffering for seeking outside of buffered data boudaries

* Add a reset_handle() call that resets a handle to its current offset
* Adapt bufadvance to make it use reset_handle() when the requested new
  position is out of the buffered data boudaries.

Tested to work correctly on sim and gigabeat. There is a slight stutter
immediately after the seek, but no showstopper for now.
apps/buffering.c
apps/buffering.h