summaryrefslogtreecommitdiffstats
path: root/stream/stream_cddb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_cddb.c')
-rw-r--r--stream/stream_cddb.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c
index 7f4558e7e7..5a6ba4e280 100644
--- a/stream/stream_cddb.c
+++ b/stream/stream_cddb.c
@@ -879,14 +879,13 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file)
// Ignore comments
if (ptr[0] != '#') {
// Search for the album title
- if (xmcd_parse_dtitle(cd_info, ptr))
- ;
- // Search for the genre
- else if (xmcd_parse_dgenre(cd_info, ptr))
- ;
- // Search for a track title
- else if (xmcd_parse_ttitle(cd_info, ptr))
- ;
+ if (!xmcd_parse_dtitle(cd_info, ptr)) {
+ // Search for the genre
+ if (!xmcd_parse_dgenre(cd_info, ptr)) {
+ // Search for a track title
+ xmcd_parse_ttitle(cd_info, ptr);
+ }
+ }
}
if (ptr2[1] == '\n')
ptr2++;