Diffstat (limited to 'noncore/multimedia/opieplayer2/mediadetect.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediadetect.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/mediadetect.cpp b/noncore/multimedia/opieplayer2/mediadetect.cpp index 5e0da88..91137db 100644 --- a/noncore/multimedia/opieplayer2/mediadetect.cpp +++ b/noncore/multimedia/opieplayer2/mediadetect.cpp | |||
@@ -19,14 +19,17 @@ char MediaDetect::videoOrAudio( const QString& fileName ) { | |||
19 | } else if ( (fileName.lower()).right(4) == "·mp1" || | 19 | } else if ( (fileName.lower()).right(4) == "·mp1" || |
20 | (fileName.lower()).right(4) == ".mp3" || | 20 | (fileName.lower()).right(4) == ".mp3" || |
21 | (fileName.lower()).right(4) == ".ogg" || | 21 | (fileName.lower()).right(4) == ".ogg" || |
22 | (fileName.lower()).right(4) == ".wav" ) { | 22 | (fileName.lower()).right(4) == ".wav" ) { |
23 | qDebug("AUDIO out taken"); | 23 | qDebug("AUDIO out taken"); |
24 | return 'a'; | 24 | return 'a'; |
25 | } else if ( (fileName.lower()).left(7) == "http://" && | ||
26 | (fileName.lower()).right(1) == "/" ) { | ||
27 | return 'a'; | ||
25 | } else { | 28 | } else { |
26 | return 'f'; | 29 | return 'f'; |
27 | } | 30 | } |
28 | } | 31 | } |
29 | 32 | ||
30 | bool MediaDetect::isStreaming( const QString& fileName ) { | 33 | bool MediaDetect::isStreaming( const QString& fileName ) { |
31 | // ugly | 34 | // ugly |
32 | if( (fileName.lower()).left(4) == "http" ) { | 35 | if( (fileName.lower()).left(4) == "http" ) { |