diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-08-01 22:02:47 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-08-01 22:02:47 +0000 |
| commit | 30c618cd96f3fb1de03254c891c4c9ca7f8a7355 (patch) | |
| tree | 3ff19e2cca984c582de9cd517782d952f2a47a51 /apps/tree.c | |
| parent | 73c283e969916b4ff918a7ff9ccb15038fb2ff18 (diff) | |
| download | rockbox-30c618cd96f3fb1de03254c891c4c9ca7f8a7355.zip rockbox-30c618cd96f3fb1de03254c891c4c9ca7f8a7355.tar.gz rockbox-30c618cd96f3fb1de03254c891c4c9ca7f8a7355.tar.bz2 rockbox-30c618cd96f3fb1de03254c891c4c9ca7f8a7355.tar.xz | |
Patch #5690 by Steve Bavin - Fix for memory corruption when using .talk clips
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10396 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
| -rw-r--r-- | apps/tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 83be023..7543ceb 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -1306,8 +1306,10 @@ int ft_play_dirname(char* name) int fd; char dirname_mp3_filename[MAX_PATH+1]; +#if CONFIG_CODEC != SWCODEC if (audio_status() & AUDIO_STATUS_PLAY) return 0; +#endif snprintf(dirname_mp3_filename, sizeof(dirname_mp3_filename), "%s/%s/%s", tc.currdir[1] ? tc.currdir : "" , name, @@ -1334,8 +1336,10 @@ void ft_play_filename(char *dir, char *file) { char name_mp3_filename[MAX_PATH+1]; +#if CONFIG_CODEC != SWCODEC if (audio_status() & AUDIO_STATUS_PLAY) return; +#endif if (strcasecmp(&file[strlen(file) - strlen(file_thumbnail_ext)], file_thumbnail_ext)) |