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:
Roman Artiukhin 2025-06-30 12:39:54 +03:00 committed by Solomon Peachy
parent 4e655be473
commit 4e18f60987

View file

@ -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 */