summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playback.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 53d2181bcf..65d7fbe204 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -2179,11 +2179,16 @@ static void audio_stop_codec_flush(void)
2179 2179
2180static void audio_stop_playback(void) 2180static void audio_stop_playback(void)
2181{ 2181{
2182 /* If we were playing, save resume information */
2183 if (playing) 2182 if (playing)
2184 { 2183 {
2185 pcmbuf_play_remainder(); 2184 /* If still actively playing here, play out the last samples in the track
2186 2185 * before stopping. A manual stop is actually paused at this point, so
2186 * don't continue playback.
2187 */
2188 if (!paused)
2189 pcmbuf_play_remainder();
2190
2191 /* If we were playing, save resume information */
2187 struct mp3entry *id3 = NULL; 2192 struct mp3entry *id3 = NULL;
2188 2193
2189 if (!ci.stop_codec) 2194 if (!ci.stop_codec)