summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-07-06 15:44:59 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-07-06 15:44:59 +0000
commit22960c3f95caf41d0ca48ac0907d3c6c830480ac (patch)
treedda8438c57539d21effe0f5d13c9cb06e8b1ac47
parentd1c294c17de95615b7af428da938b686830b42df (diff)
downloadrockbox-22960c3f95caf41d0ca48ac0907d3c6c830480ac.tar.gz
rockbox-22960c3f95caf41d0ca48ac0907d3c6c830480ac.zip
Waiting pcm buffer to run empty before stopping the last track.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7040 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 11ef7d7a04..f190f080ac 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1208,11 +1208,11 @@ void audio_change_track(void)
logf("change track");
/* Wait for new track data. */
- while (track_ridx == track_widx && filling)
+ while (track_count <= 1 && filling)
yield();
/* If we are not filling, then it must be end-of-playlist. */
- if (track_ridx == track_widx) {
+ if (track_count <= 1) {
logf("No more tracks");
while (pcm_is_playing())
yield();