Bug 196 - shared-mime-info detects avi files as riff audio
Summary: shared-mime-info detects avi files as riff audio
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
: 239 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-18 00:03 UTC by Jelmer Jaarsma
Modified: 2004-03-05 04:45 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jelmer Jaarsma 2004-02-18 00:03:43 UTC
I'm running Gnome 2.5.x updated with the latest packages, and in Nautilus 
all .avi files are recognised as audio/x-riff.
At first we thought that it was a problem with our installation, but we managed 
to track it down to shared-mime-info.
We discovered that if we lower the priority for audio/x-riff 
in /usr/share/mime/packages/freedesktop.org.xml and run update-mime-database 
that avi files are recognised as they should. We're not sure if this breaks 
audio/x-riff support. Could someone please comment on this?
Comment 1 Jelmer Jaarsma 2004-02-18 00:13:53 UTC
I forgot to mention that I'm using shared-mime-info 0.13 and that I'm running 
Gentoo. I'm not using Garnome but custom ebuilds provided by breakmygentoo.net
Comment 2 Jeroen Hoek 2004-02-18 00:19:18 UTC
This problem shows up with shared-mime-info 0.13, tested on Gentoo Linux.
(breakmygentoo.net ebuilds)

Presumable cause:
The mime magic finds a file starting with the characters "RIFF" and has a
matching audio/x-riff entry for it. However, .avi and .mpg files tend to start
with "RIFF" (and then some) aswell. The .avi and .mpg entries should have a
higher priority in cases where multiple mime magic entries apply.
Comment 3 Jelmer Jaarsma 2004-02-18 00:25:03 UTC
Oh, I just found out that this problem was probably fixed in CVS two weeks ago. 

http://freedesktop.org/cgi-bin/viewcvs.cgi/mime/shared-mime-
info/freedesktop.org.xml, revision 1.29

Sorry for reporting this. Let's change this to a request for a new release 
then :)
Comment 4 Jonathan Blandford 2004-02-18 07:28:06 UTC
Yeah.  This was fixed, as you noticed.  I'm going to do a release soon.
Comment 5 Simon Watson 2004-03-05 23:45:47 UTC
*** Bug 239 has been marked as a duplicate of this bug. ***


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.