diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-02-25 22:50:43 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-02-25 22:50:43 +0000 |
commit | 2c59de52d027d6dc638432e917d5176c41d7c754 (patch) | |
tree | e6422b1cb2977f37b606c609cb1df059ec3932ae /apps | |
parent | 86b4543fed1acc64266b9bbc3ab36855e887ebc6 (diff) | |
download | rockbox-2c59de52d027d6dc638432e917d5176c41d7c754.tar.gz rockbox-2c59de52d027d6dc638432e917d5176c41d7c754.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
436 | } | 436 | } |
437 | /* else buffer_state will be AUDIOBUF_STATE_TRASHED at this point */ | 437 | /* else buffer_state will be AUDIOBUF_STATE_TRASHED at this point */ |
438 | 438 | ||
439 | /* Reset the buffering thread so that it doesn't try to use the data */ | ||
440 | buffering_reset(filebuf, filebuflen); | ||
441 | |||
439 | if (buffer_size == NULL) | 442 | if (buffer_size == NULL) |
440 | { | 443 | { |
441 | /* Special case for talk_init to use since it already knows it's | 444 | /* Special case for talk_init to use since it already knows it's |