Package: shared-mime-info
Version: 0.30-1

Currently, audio/x-matroska and video/x-matroska have the same magic
rules, therefore the MIME type of a given file is determined to be
always audio/x-matroska, even if it is a video file. This leads to
spurious warnings in nautilus.

The solution is to make both types subclasses of application/x-matroska.
Patch attached.

Thanks,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
--- freedesktop.org.xml.in.orig	2008-05-28 16:22:26.209712547 +0200
+++ freedesktop.org.xml.in	2008-05-28 16:24:01.886194962 +0200
@@ -1902,20 +1902,21 @@
       <match type="string" value="mBIN" offset="102"/>
     </magic>
   </mime-type>
-  <mime-type type="video/x-matroska">
-    <_comment>Matroska video</_comment>
+  <mime-type type="application/x-matroska"/>
+    <_comment>Matroska stream</_comment>
     <magic priority="50">
       <match type="string" value="matroska" offset="8"/>
     </magic>
+  </mime-type>
+  <mime-type type="video/x-matroska">
+    <_comment>Matroska video</_comment>
     <glob pattern="*.mkv"/>
-    <alias type="application/x-matroska"/>
+    <sub-class-of type="application/x-matroska"/>
   </mime-type>
   <mime-type type="audio/x-matroska">
     <_comment>Matroska audio</_comment>
-    <magic priority="50">
-      <match type="string" value="matroska" offset="8"/>
-    </magic>
     <glob pattern="*.mka"/>
+    <sub-class-of type="application/x-matroska"/>
   </mime-type>
   <mime-type type="text/x-ocl">
     <_comment>OCL file</_comment>

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to