[haiku-bugs] Re: [Haiku] #5276: MediaPlayer crash at start when trying to restore playlist but file is gone

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Tue, 21 Sep 2010 19:16:40 -0000

#5276: MediaPlayer crash at start when trying to restore playlist but file is 
gone
---------------------------------------+------------------------------------
  Reporter:  miqlas                    |         Owner:  stippi            
      Type:  bug                       |        Status:  closed            
  Priority:  normal                    |     Milestone:  R1                
 Component:  Applications/MediaPlayer  |       Version:  R1/Development    
Resolution:  fixed                     |      Keywords:  media player crash
Blocked By:                            |   Has a Patch:  0                 
  Platform:  All                       |      Blocking:                    
---------------------------------------+------------------------------------
Changes (by stippi):

  * status:  assigned => closed
  * resolution:  => fixed


Comment:

 A wait, this isn't a MediaPlayer bug at all, looking at the stack crawl
 again. What happened is that BMediaFile creates a BFile, but never checks
 InitCheck() on the object. If the file is invalid, some buggy decoder,
 like probably the APE reader in this case, may not check return values
 from the reading methods and crash. In any case, the issue is definitely
 fixed, since I implemented checking BFile::InitCheck() and propagating the
 error in r38760.

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

Other related posts: