mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
73c283e969
commit
30c618cd96
2 changed files with 50 additions and 10 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue