1
0
Fork 0
forked from len0rd/rockbox

voice file not loading

>
> I ran into an issue where my voice file would only load if I changed language while playing music. It seems to happen because when no other file is open, file.c alloc_filestr returns the first free handle which is 0. In talk.c this is treated as an invalid handle, so the voice file is not loaded.

Change-Id: I42db40b10cc7a900bdd72012d99265300e783e44
This commit is contained in:
Peter Sealy 2017-02-18 23:39:48 +01:00 committed by Solomon Peachy
parent 65a91333ef
commit b64a286a81

View file

@ -935,7 +935,7 @@ void talk_init(void)
* and so we can re-use it if it's already allocated in any event */
filehandle = open_voicefile();
if (filehandle > 0)
if (filehandle > -1)
{
if (!load_voicefile_index(filehandle))
{