From 4e18f609877bfb001b78f53d55f1161dd0a8967f Mon Sep 17 00:00:00 2001 From: Roman Artiukhin Date: Mon, 30 Jun 2025 12:39:54 +0300 Subject: [PATCH] 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 --- apps/cuesheet.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 7d5e608ada..c5a1aacad9 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -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 */