summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-15 11:19:25 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-15 11:19:25 +0000
commit338e4d76aad9c65971b165a745e4c00dfc742635 (patch)
tree3eee23f4a286bd06016afa6c7e42a2348d3960ca
parentfecf90fda951a817219cd13885d3da22c58bdcb5 (diff)
downloadrockbox-338e4d76aad9c65971b165a745e4c00dfc742635.tar.gz
rockbox-338e4d76aad9c65971b165a745e4c00dfc742635.zip
fix inverted logic in r26047: voice works again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26049 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/talk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c
index c327487962..0e3ff17a1b 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -542,7 +542,7 @@ void talk_init(void)
542 filehandle = open_voicefile(); 542 filehandle = open_voicefile();
543 size_t audiobufsz = audiobufend - audiobuf; 543 size_t audiobufsz = audiobufend - audiobuf;
544 /* test if we can open and if it fits in the audiobuffer */ 544 /* test if we can open and if it fits in the audiobuffer */
545 has_voicefile = filehandle >= 0 && filesize(filehandle) > (off_t)audiobufsz; 545 has_voicefile = filehandle >= 0 && filesize(filehandle) <= (off_t)audiobufsz;
546 voicefile_size = 0; 546 voicefile_size = 0;
547 547
548 if (has_voicefile) 548 if (has_voicefile)