fix bug with title composition
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 5 Sep 2002 05:39:06 +0000 (05:39 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 5 Sep 2002 05:39:06 +0000 (05:39 +0000)
src/plugin_winamp2/in_flac.c

index 0b44b30..a00af4f 100644 (file)
@@ -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