forked from len0rd/rockbox
Forward seeking fixed. Some comments added.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6700 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7dad7d3a6a
commit
d94cba6d0f
3 changed files with 58 additions and 24 deletions
|
@ -305,12 +305,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parm)
|
|||
sample_loc = ci->seek_time/1000 * ci->id3->frequency;
|
||||
newpos = ci->mp3_get_filepos(ci->seek_time-1);
|
||||
if (ci->seek_buffer(newpos)) {
|
||||
ci->seek_time = 0;
|
||||
if (sample_loc >= samplecount + samplesdone)
|
||||
break ;
|
||||
samplecount += samplesdone - sample_loc;
|
||||
samplesdone = sample_loc;
|
||||
}
|
||||
ci->seek_time = 0;
|
||||
}
|
||||
|
||||
/* Lock buffers */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue