Summary: | taglib doesn't grok ogg-vorbis .oga files | ||
---|---|---|---|
Product: | [Frameworks and Libraries] taglib | Reporter: | Rex Dieter <rdieter> |
Component: | general | Assignee: | Scott Wheeler <wheeler> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | diego.ml, lalinsky, matthew.t.craig, nmuecke, rom1v |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Rex Dieter
2008-12-23 21:46:51 UTC
For posterity, here's Scott's comment from the taglib ml: Here's the Xiph bit on it: http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions#.oga_-_audio.2Fogg It seems that .oga should be supported for .ogg files, but it's not a recommended extension for them. In TagLib 2.0, whenever that comes around, I think that it'll finally make sense to move some file magic into TagLib itself, but right now the recommended (and documented) means of working with TagLib and mimetype detection is to use the file type resolvers to plug in the platform's file type resolution (i.e. KMimeType) *** Bug 187574 has been marked as a duplicate of this bug. *** #1 disagree Audio files of mimetype audio/ogg use the .oga file extension, by default, according to RFC5334. The link you provided does not say that .oga is not recommended. It instead says, "Vorbis and Speex may use .oga, but it is not the prefered method of distributing these files because of backwards-compatibility issues." This is due to devices that support Vorbis typically expect to see .ogg file extensions, however, it is valid and recommended according the RFC. *** Bug 195310 has been marked as a duplicate of this bug. *** SVN commit 983337 by mboquien: .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 M +1 -1 fileref.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=983337 *** Bug 197292 has been marked as a duplicate of this bug. *** From my naive non-coder eyes, the "fix" makes taglib assume .oga files are ogg-vorbis containers, and breaks ogg-flac. ?? To be clear, the comment along with code fix says "it(OGA) was not defined in create()", but that's untrue, it contained: if(ext == "OGA") return new Ogg::FLAC::File(fileName, readAudioProperties, audioPropertiesStyle); This is fixed in r1039708 |