summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/mpeg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 1698900..9e61e02 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -882,9 +882,13 @@ static void track_change(void)
/* Reset the AVC */
sound_set(SOUND_AVC, -1);
#endif /* #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) */
- remove_current_tag();
- update_playlist();
+ if (num_tracks_in_memory() > 0)
+ {
+ remove_current_tag();
+ update_playlist();
+ }
+
current_track_counter++;
}