summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/mpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c
index f6d48bf..45b3619 100644
--- a/apps/mpeg.c
+++ b/apps/mpeg.c
@@ -1051,8 +1051,9 @@ static void track_change(void)
if (num_tracks_in_memory() > 0)
{
remove_current_tag();
- send_event(PLAYBACK_EVENT_TRACK_CHANGE, audio_current_track());
update_playlist();
+ if (is_playing)
+ send_event(PLAYBACK_EVENT_TRACK_CHANGE, audio_current_track());
}
current_track_counter++;