diff options
| -rw-r--r-- | apps/playback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index 91f9305..9abc3e3 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -809,7 +809,8 @@ void audio_check_buffer(void) /* Fill buffer as full as possible for cross-fader. */ #ifndef SIMULATOR - if (cur_ti->id3.length - cur_ti->id3.elapsed < 20000 && playing) + if (cur_ti->id3.length > 0 && + cur_ti->id3.length - cur_ti->id3.elapsed < 20000 && playing) pcm_set_boost_mode(true); #endif |