From b0be5b91c09e3a85de1042c973f17ba3d6897084 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sun, 12 May 2002 11:55:48 +0000 Subject: don't show blank entries in tags --- diff --git a/core/multimedia/opieplayer/libmad/libmadplugin.cpp b/core/multimedia/opieplayer/libmad/libmadplugin.cpp index b06cdaa..0adb503 100644 --- a/core/multimedia/opieplayer/libmad/libmadplugin.cpp +++ b/core/multimedia/opieplayer/libmad/libmadplugin.cpp @@ -36,7 +36,6 @@ #include #include -#include #include @@ -821,9 +820,11 @@ void LibMadPlugin::printID3Tags() { char *ptr3 = ptr2; while ( ptr3-1 >= ptr && isspace(ptr3[-1]) ) ptr3--; char push2 = *ptr3; *ptr3 = '\0'; - if ( strcmp( ptr, "" ) ) + if ( strcmp( ptr, "" ) ) { + if( ((QString)ptr).find(" ") == -1) // don't add anything that has blanks info += ( i != 0 ? ", " : "" ) + label[i] + ": " + ptr; - //qDebug( info.latin1() ); + } +// qDebug( info.latin1() ); *ptr3 = push2; *ptr2 = push; } -- cgit v0.9.0.2