playlist.c fix red for non multivolume targets

Change-Id: Ic0fdb325bc9c8d886c7627679fb2d02521400da7
This commit is contained in:
William Wilgus 2022-03-11 20:05:14 -05:00
parent eb32238b22
commit 95af36d0dd

View file

@ -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);