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
This commit is contained in:
parent
86b4543fed
commit
2c59de52d0
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
/* 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)
|
if (buffer_size == NULL)
|
||||||
{
|
{
|
||||||
/* Special case for talk_init to use since it already knows it's
|
/* Special case for talk_init to use since it already knows it's
|
||||||
|
|
Loading…
Reference in a new issue