From 9b4e7845602683882577aa9fe52aa55f3874a341 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 14 Mar 2022 17:16:48 -0400 Subject: BUGFIX string_option parsers fix bugs introduced in the switch over to using string_option instead of if else strcmp trees, embedded album art should work again skin parser had an error for 'noborder' and 'nobar' Change-Id: I957d81e5fa8467b33bbd93d63c4428c36100acca --- lib/rbcodec/metadata/asf.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'lib/rbcodec/metadata/asf.c') diff --git a/lib/rbcodec/metadata/asf.c b/lib/rbcodec/metadata/asf.c index 82873a43a6..b578746658 100644 --- a/lib/rbcodec/metadata/asf.c +++ b/lib/rbcodec/metadata/asf.c @@ -441,13 +441,20 @@ static int asf_parse_header(int fd, struct mp3entry* id3, { eWM_TrackNumber, eWM_Genre, eWM_AlbumTitle, eWM_AlbumArtist, eWM_Composer, eWM_Year, - eWM_MusicBrainz_Track_Id, eWM_Picture + eWM_MusicBrainz_Track_Id, eWM_Picture, + eWM_COUNT_TAG_COUNT }; - - static const char *tagops[] = - { "WM/TrackNumber", "WM/Genre", "WM/AlbumTitle", - "WM/AlbumArtist", "WM/Composer", "WM/Year", - "MusicBrainz/Track Id", "WM/Picture", NULL + + static const char *tagops[eWM_COUNT_TAG_COUNT + 1] = + { [eWM_TrackNumber] = "WM/TrackNumber", + [eWM_Genre] = "WM/Genre", + [eWM_AlbumTitle] = "WM/AlbumTitle", + [eWM_AlbumArtist] = "WM/AlbumArtist", + [eWM_Composer] = "WM/Composer", + [eWM_Year] = "WM/Year", + [eWM_MusicBrainz_Track_Id]"MusicBrainz/Track Id", + [eWM_Picture]"WM/Picture", + [eWM_COUNT_TAG_COUNT] = NULL }; for (i=0; i < count; i++) { -- cgit v1.2.3