From: Médéric Boquien Date: Thu, 18 Jun 2009 02:15:19 +0000 (+0000) Subject: .oga files were not processed. Fix this. The problem was that even if the extension... X-Git-Tag: v1.6rc1~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b19a4cf81cf493afb02e234e736ef982a205a4d0;p=taglib .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 --- 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);