summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-08 13:06:28 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-08 13:06:28 +0000
commit3e3c21b6f0bc1c9b94de402282364ea6e61d9cea (patch)
treebc0f7ec8ad355378823044b4df25c93861158d6a
parent502fbd710cc312dc54c6a9d236a1c1de80b62387 (diff)
downloadrockbox-3e3c21b6f0bc1c9b94de402282364ea6e61d9cea.zip
rockbox-3e3c21b6f0bc1c9b94de402282364ea6e61d9cea.tar.gz
rockbox-3e3c21b6f0bc1c9b94de402282364ea6e61d9cea.tar.bz2
rockbox-3e3c21b6f0bc1c9b94de402282364ea6e61d9cea.tar.xz
Fix the condition on an error splash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9565 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index e829300..7889f12 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1211,9 +1211,6 @@ static bool audio_load_track(int offset, bool start_play, int peek_offset)
/* Load the codec. */
tracks[track_widx].codecbuf = &filebuf[buf_widx];
if (!loadcodec(start_play)) {
- /* We should not use gui_syncplash from audio thread! */
- snprintf(msgbuf, sizeof(msgbuf)-1, "No codec for: %s", trackname);
- gui_syncsplash(HZ*2, true, msgbuf);
close(current_fd);
current_fd = -1;
@@ -1224,6 +1221,10 @@ static bool audio_load_track(int offset, bool start_play, int peek_offset)
/* Try skipping to next track if there is space. */
if (fill_bytesleft > 0) {
+ /* This is an error condition unless the fill_bytesleft is 0 */
+ snprintf(msgbuf, sizeof(msgbuf)-1, "No codec for: %s", trackname);
+ /* We should not use gui_syncplash from audio thread! */
+ gui_syncsplash(HZ*2, true, msgbuf);
/* Skip invalid entry from playlist. */
playlist_skip_entry(NULL, peek_offset);
goto peek_again;