diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c index e71e06b92c..e33a4ac507 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -2013,6 +2013,15 @@ static void audio_thread(void) | |||
2013 | LOGFQUEUE("audio < Q_AUDIO_FF_REWIND"); | 2013 | LOGFQUEUE("audio < Q_AUDIO_FF_REWIND"); |
2014 | if (!playing) | 2014 | if (!playing) |
2015 | break; | 2015 | break; |
2016 | |||
2017 | if ((long)ev.data == 0) | ||
2018 | { | ||
2019 | /* About to restart the track - send track finish | ||
2020 | events if not already done. */ | ||
2021 | if (thistrack_id3 == audio_current_track()) | ||
2022 | send_event(PLAYBACK_EVENT_TRACK_FINISH, thistrack_id3); | ||
2023 | } | ||
2024 | |||
2016 | if (automatic_skip) | 2025 | if (automatic_skip) |
2017 | { | 2026 | { |
2018 | /* An automatic track skip is in progress. Finalize it, | 2027 | /* An automatic track skip is in progress. Finalize it, |