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
This commit is contained in:
Linus Nielsen Feltzing 2006-08-01 22:02:47 +00:00
parent 73c283e969
commit 30c618cd96
2 changed files with 50 additions and 10 deletions

View file

@ -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))