mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
cuesheet: allow playback from arbitrarily named cue file
The removed filename check is required for proper cuesheet recognition in WPS, but it should not prevent playback from an otherwise valid cuesheet. Change-Id: I2876a8855f06fb569e3ac171b04931af8be16cd1
This commit is contained in:
parent
4e655be473
commit
4e18f60987
1 changed files with 3 additions and 11 deletions
|
|
@ -503,19 +503,11 @@ void browse_cuesheet(struct cuesheet *cue)
|
|||
if (!startit || !*cue->file)
|
||||
break;
|
||||
|
||||
/* check that this cue is the same one that would be found by
|
||||
a search from playback */
|
||||
char file[MAX_PATH];
|
||||
strmemccpy(file, cue->file, MAX_PATH);
|
||||
|
||||
if (!strcmp(cue->path, file) || /* if embedded */
|
||||
(search_for_cuesheet(file, &cue_file) &&
|
||||
!strcmp(cue->path, cue_file.path)))
|
||||
{
|
||||
char *fname = strrsplt(file, '/');
|
||||
char *dirname = fname <= file + 1 ? "/" : file;
|
||||
bookmark_play(dirname, 0, elapsed, 0, current_tick, fname);
|
||||
}
|
||||
char *fname = strrsplt(file, '/');
|
||||
char *dirname = fname <= file + 1 ? "/" : file;
|
||||
bookmark_play(dirname, 0, elapsed, 0, current_tick, fname);
|
||||
break;
|
||||
} /* ACTION_STD_OK */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue