summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 1068796..c0b2db9 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -239,6 +239,9 @@ void codec_set_elapsed_callback(unsigned int value)
{
unsigned int latency;
+ if (ci.stop_codec)
+ return ;
+
latency = audiobuffer_get_latency();
if (value < latency) {
@@ -751,7 +754,7 @@ void audio_play_start(int offset)
buf_widx = 0;
codecbufused = 0;
pcm_set_boost_mode(true);
-
+
fill_bytesleft = codecbuflen;
filling = true;
last_peek_offset = 0;