Bug 24481

Summary: FLAC magic not used
Product: shared-mime-info Reporter: Jeff Mitchell <mitchell>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Jeff Mitchell 2009-10-12 10:24:28 UTC
The only detection for FLAC files (audio/x-flac) is currently wildcard filename detection (*.flac).

This doesn't work for files that don't end in FLAC, even though FLAC contains a magic value to identify it.

Adding the following:

<magic priority="50">
    <match value="fLaC" type="string" offset="0"/>
</magic>

Allows FLAC files without .flac extensions to be correctly detected.
Comment 1 Bastien Nocera 2009-10-13 04:36:15 UTC
commit dc00493cd7d896d6207fc325574e99a5db9ed570
Author: Bastien Nocera <hadess@hadess.net>
Date:   Tue Oct 13 12:33:48 2009 +0100

    [mime] Add magic for FLAC files
    
    Provided by mitchell@kde.org

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.