summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Sealy <nuapete@gmail.com>2017-02-18 23:39:48 +0100
committerSolomon Peachy <pizza@shaftnet.org>2020-07-09 14:07:37 +0000
commitb64a286a81fcb2706eada010ffe4b561b473889e (patch)
tree25c4809e043b9569bfe6c42f18ce457d244b47da
parent65a91333efb55e3db7b275eb28f0d93d00ffe273 (diff)
downloadrockbox-b64a286a81fcb2706eada010ffe4b561b473889e.tar.gz
rockbox-b64a286a81fcb2706eada010ffe4b561b473889e.tar.bz2
rockbox-b64a286a81fcb2706eada010ffe4b561b473889e.zip
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
-rw-r--r--apps/talk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c
index ec0ba67f38..35c2a477fc 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -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))
{