From 2c59de52d027d6dc638432e917d5176c41d7c754 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 25 Feb 2009 22:50:43 +0000 Subject: make audio_get_buffer() properly invalidate the buffer (FS#9935, fix by Nicolas Pennequin) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20106 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/playback.c b/apps/playback.c index 2421774381..436fef3af1 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -436,6 +436,9 @@ unsigned char *audio_get_buffer(bool talk_buf, size_t *buffer_size) } /* else buffer_state will be AUDIOBUF_STATE_TRASHED at this point */ + /* Reset the buffering thread so that it doesn't try to use the data */ + buffering_reset(filebuf, filebuflen); + if (buffer_size == NULL) { /* Special case for talk_init to use since it already knows it's -- cgit v1.2.3