Diffstat (limited to 'core/multimedia/opieplayer/libmad') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/libmad/libmadplugin.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 | |||
@@ -33,13 +33,12 @@ | |||
33 | #include <locale.h> | 33 | #include <locale.h> |
34 | #include <math.h> | 34 | #include <math.h> |
35 | #include <assert.h> | 35 | #include <assert.h> |
36 | 36 | ||
37 | #include <qapplication.h> | 37 | #include <qapplication.h> |
38 | #include <qmessagebox.h> | 38 | #include <qmessagebox.h> |
39 | #include <qregexp.h> | ||
40 | 39 | ||
41 | #include <qpe/config.h> | 40 | #include <qpe/config.h> |
42 | 41 | ||
43 | // for network handling | 42 | // for network handling |
44 | #include <netinet/in.h> | 43 | #include <netinet/in.h> |
45 | #include <netdb.h> | 44 | #include <netdb.h> |
@@ -818,15 +817,17 @@ void LibMadPlugin::printID3Tags() { | |||
818 | for ( int i = 0; i < 5; ptr += len[i], i++, ptr2 += len[i] ) { | 817 | for ( int i = 0; i < 5; ptr += len[i], i++, ptr2 += len[i] ) { |
819 | char push = *ptr2; | 818 | char push = *ptr2; |
820 | *ptr2 = '\0'; | 819 | *ptr2 = '\0'; |
821 | char *ptr3 = ptr2; | 820 | char *ptr3 = ptr2; |
822 | while ( ptr3-1 >= ptr && isspace(ptr3[-1]) ) ptr3--; | 821 | while ( ptr3-1 >= ptr && isspace(ptr3[-1]) ) ptr3--; |
823 | char push2 = *ptr3; *ptr3 = '\0'; | 822 | char push2 = *ptr3; *ptr3 = '\0'; |
824 | if ( strcmp( ptr, "" ) ) | 823 | if ( strcmp( ptr, "" ) ) { |
824 | if( ((QString)ptr).find(" ") == -1) // don't add anything that has blanks | ||
825 | info += ( i != 0 ? ", " : "" ) + label[i] + ": " + ptr; | 825 | info += ( i != 0 ? ", " : "" ) + label[i] + ": " + ptr; |
826 | //qDebug( info.latin1() ); | 826 | } |
827 | // qDebug( info.latin1() ); | ||
827 | *ptr3 = push2; | 828 | *ptr3 = push2; |
828 | *ptr2 = push; | 829 | *ptr2 = push; |
829 | } | 830 | } |
830 | if (id3v1[126] == 0 && id3v1[127] != 0) | 831 | if (id3v1[126] == 0 && id3v1[127] != 0) |
831 | info += tr( ", Track: " ) + id3v1[127]; | 832 | info += tr( ", Track: " ) + id3v1[127]; |
832 | } | 833 | } |