diff --git a/firmware/mpeg.c b/firmware/mpeg.c index dd990a781c..974f915232 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -503,7 +503,7 @@ void DEI3(void) { if(playing) { - int unplayed_space_left = get_unplayed_space(); + int unplayed_space_left; int space_until_end_of_buffer; int track_offset = (tag_read_idx+1) & MAX_ID3_TAGS_MASK; @@ -521,6 +521,8 @@ void DEI3(void) } } + unplayed_space_left = get_unplayed_space(); + space_until_end_of_buffer = mp3buflen - mp3buf_read; if(!filling && unplayed_space_left < MPEG_LOW_WATER)