summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index dd4270e..fc59b42 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -282,7 +282,7 @@ long codec_filebuf_callback(void *ptr, long size)
while (copy_n > cur_ti->available) {
yield();
- if (ci.stop_codec)
+ if (ci.stop_codec || ci.reload_codec)
return 0;
}
@@ -321,7 +321,7 @@ void* codec_request_buffer_callback(long *realsize, long reqsize)
while ((int)*realsize > cur_ti->available) {
yield();
- if (ci.stop_codec) {
+ if (ci.stop_codec || ci.reload_codec) {
*realsize = 0;
return NULL;
}
@@ -373,7 +373,7 @@ static bool rebuffer_and_seek(int newpos)
while (cur_ti->available == 0 && cur_ti->filerem > 0) {
yield();
- if (ci.stop_codec)
+ if (ci.stop_codec || ci.reload_codec)
return false;
}