summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 91f930540d..9abc3e38a9 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -809,7 +809,8 @@ void audio_check_buffer(void)
809 809
810 /* Fill buffer as full as possible for cross-fader. */ 810 /* Fill buffer as full as possible for cross-fader. */
811#ifndef SIMULATOR 811#ifndef SIMULATOR
812 if (cur_ti->id3.length - cur_ti->id3.elapsed < 20000 && playing) 812 if (cur_ti->id3.length > 0 &&
813 cur_ti->id3.length - cur_ti->id3.elapsed < 20000 && playing)
813 pcm_set_boost_mode(true); 814 pcm_set_boost_mode(true);
814#endif 815#endif
815 816