summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/playback.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index ec9ad41a96..bd3f2077a2 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1017,7 +1017,7 @@ void codec_seek_complete_callback(void)
if (!paused)
pcmbuf_pause(false);
}
- ci.seek_time = 0;
+ queue_post(&codec_callback_queue, Q_CODEC_REQUEST_COMPLETE, 0);
}
bool codec_seek_buffer_callback(size_t newpos)
@@ -2015,6 +2015,8 @@ void audio_thread(void)
break ;
logf("ff_rewind");
ci.seek_time = (long)ev.data+1;
+ queue_wait(&codec_callback_queue, &ev);
+ ci.seek_time = 0;
break ;
case Q_AUDIO_REBUFFER_SEEK: