Bug 9788 - Matroska type update
Summary: Matroska type update
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: 2007-01-28 15:57 UTC by Ville Skyttä
Modified: 2007-02-02 04:45 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Matroska MIME type update (1.05 KB, patch)
2007-01-28 15:58 UTC, Ville Skyttä
Details | Splinter Review

Description Ville Skyttä 2007-01-28 15:57:37 UTC
From http://www.matroska.org/technical/specs/notes.html:

"There is no IETF endorsed MIME type for Matroska files. But you can use the ones we have defined on your system :
    * .mka : Matroska audio audio/x-matroska
    * .mkv : Matroska video video/x-matroska"

Patch attached.
Comment 1 Ville Skyttä 2007-01-28 15:58:35 UTC
Created attachment 8522 [details] [review]
Matroska MIME type update
Comment 2 Ville Skyttä 2007-01-28 16:00:27 UTC
On a second thought, the patch sets magic priority to 50 for both audio/x-matroska and video/x-matroska.  I guess the video one should be preferred, so perhaps lower it for audio or remove magic for audio altogether?
Comment 3 Bastien Nocera 2007-02-02 04:45:18 UTC
I committed with prio at 80 for the mka type, but this wouldn't work. Having the priority at 50 (just like the video type) means that as both audio and video are matches for a file, video will be preferred because of the suffix.

We'll see how well that works in the future...

2007-02-02  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: lower the prio of the audio/x-matroska to 50,
        so that detection can happen based on suffix as well

2007-02-02  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: Patch from Ville Skyttä <ville.skytta@iki.fi>
        to use the preferred Matroska mime-types, add Matroska audio support
        (Closes: #9788)


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.