[haiku-development] Re: Ogg detection in MediaPlayer

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 10 May 2009 08:21:48 +0200

On 2009-05-10 at 05:44:44 [+0200], Philippe Saint-Pierre <stpere@xxxxxxxxx> 
wrote:
> So, I got an idea regarding this.. tell me if it could work.  The 
> application already have a list of Supported Types (defined at compile 
> time but update-able in FileTypes).  Right?  And if I understand 
> correctly, that list is directly integrated in the mime database.
> 
> So, why don't we simply reuse that data (the mimetypes listed as 
> supported by MediaPlayer) to determine if MediaPlayer should attempt to 
> read the file dropped on it?
> 
> We could pretty easily load the list of mimetypes, and filter the files 
> using it.
> 
> I mean, it's not like that data wasn't already available and maintained, 
> right? :-)

Good point! Ignoring this list in MediaPlayer internally is wrong in any 
case!

Best regards,
-Stephan

Other related posts: