From 95af36d0dd3a400bc22a12e76cb914eb4dce54f8 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 11 Mar 2022 20:05:14 -0500 Subject: [PATCH] playlist.c fix red for non multivolume targets Change-Id: Ic0fdb325bc9c8d886c7627679fb2d02521400da7 --- apps/playlist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/playlist.c b/apps/playlist.c index 09a5b579e1..320f0bab57 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -2588,9 +2588,11 @@ unsigned int playlist_get_filename_crc32(struct playlist_info *playlist, if (playlist_get_track_info(playlist, index, &track_info) == -1) return -1; const char *basename; +#ifdef HAVE_MULTIVOLUME /* remove the volume identifier it might change just use the relative part*/ path_strip_volume(track_info.filename, &basename, false); if (basename == NULL) +#endif basename = track_info.filename; NOTEF("%s: %s", __func__, basename); return crc_32(basename, strlen(basename), -1);