From bbe7d9d0945e1bb999d8101411939a092c42f151 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Thu, 5 Sep 2002 05:39:06 +0000 Subject: [PATCH] fix bug with title composition --- src/plugin_winamp2/in_flac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin_winamp2/in_flac.c b/src/plugin_winamp2/in_flac.c index 0b44b309..a00af4f4 100644 --- a/src/plugin_winamp2/in_flac.c +++ b/src/plugin_winamp2/in_flac.c @@ -538,8 +538,8 @@ void get_description_(const char *filename, char *description, unsigned max_size *p = '\0'; } else { - char *artist = tag.performer[0]? tag.performer : tag.composer[0]? tag.composer : "Unknown Artist"; - char *title = tag.title[0]? tag.title : "Untitled"; + char *artist = !local__is_blank(tag.performer)? tag.performer : !local__is_blank(tag.composer)? tag.composer : "Unknown Artist"; + char *title = !local__is_blank(tag.title)? tag.title : "Untitled"; /* there's no snprintf in VC6 so we get sloppy */ #if 0