[haiku-bugs] Re: [Haiku] #11018: [Media Kit]: BMediaFormats::GetFormatFor doesn't find any formats anymore

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 22 Oct 2014 13:31:48 -0000

#11018: [Media Kit]: BMediaFormats::GetFormatFor doesn't find any formats 
anymore
-------------------------+-------------------------------------------------
   Reporter:  colin      |      Owner:  axeld
       Type:  bug        |     Status:  closed
   Priority:  normal     |  Milestone:  Unscheduled
  Component:             |    Version:  R1/Development
  Kits/Media Kit         |   Keywords:  BMediaFormats, GetFormatFor, DVB,
 Resolution:  fixed      |  ffmpeg
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+-------------------------------------------------
Changes (by pulkomandy):

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


Comment:

 Fixed in hrev48070. You are right that registering the add-ons in the
 constructors is not a good idea. I designed this so the loading can be
 delayed as much as possible. This way we keep the application start time
 short, and the scanning only happens when needed because the app calls one
 of the media kit functions.

 I made RegisterAddOns public in AddOnManager and called it from
 MediaFormats format update function. Since RegisterAddOns does nothing
 except the first time it's called, there is no problem in doing this.

 Thanks for investigating this. I can confirm the issue is solved as the
 mp3_decoder_test does not crash anymore (with the workaround removed).
 However it seems ffmpeg has trouble decoding the file.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11018#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: