forked from len0rd/rockbox
Fix an issue introduced by r16930 where rebuffering would happen one track too early because track were counted after moving to the next one instead of before.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16948 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b24ed65faf
commit
a3ed95247c
1 changed files with 1 additions and 1 deletions
|
|
@ -1853,6 +1853,7 @@ static void audio_rebuffer(void)
|
||||||
of the track transition. */
|
of the track transition. */
|
||||||
static int audio_check_new_track(void)
|
static int audio_check_new_track(void)
|
||||||
{
|
{
|
||||||
|
int track_count = audio_track_count();
|
||||||
int old_track_ridx = track_ridx;
|
int old_track_ridx = track_ridx;
|
||||||
int i, idx;
|
int i, idx;
|
||||||
bool forward;
|
bool forward;
|
||||||
|
|
@ -1958,7 +1959,6 @@ static int audio_check_new_track(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If it is not safe to even skip this many track entries */
|
/* If it is not safe to even skip this many track entries */
|
||||||
int track_count = audio_track_count();
|
|
||||||
if (ci.new_track >= track_count || ci.new_track <= track_count - MAX_TRACK)
|
if (ci.new_track >= track_count || ci.new_track <= track_count - MAX_TRACK)
|
||||||
{
|
{
|
||||||
ci.new_track = 0;
|
ci.new_track = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue