diff options
author | Peter Sealy <nuapete@gmail.com> | 2017-02-18 23:39:48 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-09 14:07:37 +0000 |
commit | b64a286a81fcb2706eada010ffe4b561b473889e (patch) | |
tree | 25c4809e043b9569bfe6c42f18ce457d244b47da | |
parent | 65a91333efb55e3db7b275eb28f0d93d00ffe273 (diff) | |
download | rockbox-b64a286a81fcb2706eada010ffe4b561b473889e.tar.gz 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.c | 2 |
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) | |||
935 | * and so we can re-use it if it's already allocated in any event */ | 935 | * and so we can re-use it if it's already allocated in any event */ |
936 | 936 | ||
937 | filehandle = open_voicefile(); | 937 | filehandle = open_voicefile(); |
938 | if (filehandle > 0) | 938 | if (filehandle > -1) |
939 | { | 939 | { |
940 | if (!load_voicefile_index(filehandle)) | 940 | if (!load_voicefile_index(filehandle)) |
941 | { | 941 | { |