diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index 1068796c83..c0b2db985e 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -239,6 +239,9 @@ void codec_set_elapsed_callback(unsigned int value) | |||
239 | { | 239 | { |
240 | unsigned int latency; | 240 | unsigned int latency; |
241 | 241 | ||
242 | if (ci.stop_codec) | ||
243 | return ; | ||
244 | |||
242 | latency = audiobuffer_get_latency(); | 245 | latency = audiobuffer_get_latency(); |
243 | 246 | ||
244 | if (value < latency) { | 247 | if (value < latency) { |
@@ -751,7 +754,7 @@ void audio_play_start(int offset) | |||
751 | buf_widx = 0; | 754 | buf_widx = 0; |
752 | codecbufused = 0; | 755 | codecbufused = 0; |
753 | pcm_set_boost_mode(true); | 756 | pcm_set_boost_mode(true); |
754 | 757 | ||
755 | fill_bytesleft = codecbuflen; | 758 | fill_bytesleft = codecbuflen; |
756 | filling = true; | 759 | filling = true; |
757 | last_peek_offset = 0; | 760 | last_peek_offset = 0; |