From b19a4cf81cf493afb02e234e736ef982a205a4d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9d=C3=A9ric=20Boquien?= Date: Thu, 18 Jun 2009 02:15:19 +0000 Subject: [PATCH] .oga files were not processed. Fix this. The problem was that even if the extension was defined in defaultFileExtensions(), it was not defined in create() so the file was never processed. As a 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/fileref.cpp b/taglib/fileref.cpp index 0e1ce57e..31fcddab 100644 --- a/taglib/fileref.cpp +++ b/taglib/fileref.cpp @@ -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);