mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
.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
This commit is contained in:
parent
901a427d1f
commit
b19a4cf81c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user