]> granicus.if.org Git - taglib/commitdiff
.oga files were not processed. Fix this. The problem was that even if the extension...
authorMédéric Boquien <mboquien@free.fr>
Thu, 18 Jun 2009 02:15:19 +0000 (02:15 +0000)
committerMédéric Boquien <mboquien@free.fr>
Thu, 18 Jun 2009 02:15:19 +0000 (02:15 +0000)
nice side effect, it also fixes the Amarok bug that caused .oga files not to be picked up by the collection scanner.

BUG:178602

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@983337 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/fileref.cpp

index 0e1ce57e6d0ec482a37d870b9ee79c98ea18700e..31fcddab212a75f348cd5cd434d82dd00114caf8 100644 (file)
@@ -205,7 +205,7 @@ File *FileRef::create(FileName fileName, bool readAudioProperties,
   int pos = s.rfind(".");
   if(pos != -1) {
     String ext = s.substr(pos + 1).upper();
-    if(ext == "OGG")
+    if(ext == "OGG" || ext == "OGA")
       return new Ogg::Vorbis::File(fileName, readAudioProperties, audioPropertiesStyle);
     if(ext == "MP3")
       return new MPEG::File(fileName, readAudioProperties, audioPropertiesStyle);