[haiku-bugs] Re: [Haiku] #9621: Tracker and MediaPlayer don't recognize filetype without extension

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Fri, 05 Apr 2013 08:40:54 -0000

#9621: Tracker and MediaPlayer don't recognize filetype without extension
----------------------------+----------------------------
   Reporter:  Kev           |      Owner:  nobody
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  R1
  Component:  Applications  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  x86
----------------------------+----------------------------

Comment (by phoudoin):

 Our MPEG sniffer rule is broken, because it was just checking the first
 byte was a 'G', which was turned any text document starting with a G
 letter into a video media ;-)

 Until we enhanced our sniffer parser to support a repeat pattern (here,
 checking a 'G' every 188 bytes for the first 100 times can assert at 80%
 that's a MPEG file...), we rely only on the extension suffix.

 It's why when you suffix your files they are *only then* identified as
 video ones.
 Which leads to a ticket to improve our sniffer rule pattern grammar... I
 just can't find it.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9621#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: