Bug 24481 - FLAC magic not used
Summary: FLAC magic not used
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-12 10:24 UTC by Jeff Mitchell
Modified: 2009-10-13 04:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.