[openbeosmediakit] Aw: BMediaDecoder

  • From: Marcus Overhagen <marcusoverhagen@xxxxxxxx>
  • To: openbeosmediakit@xxxxxxxxxxxxx
  • Date: Fri, 23 Jan 2004 09:36:25 +0100 (CET)

> Hi there,
> is it accidently or by reason that both, MediaDecoder.cpp and 
> PluginManager.cpp declare a global _plugin_manager object (two 
> different ones)??

This is a bug. MediaDecoder.cpp should not have it's own 
plugin manager object, and a function like the
static DecoderPlugin * GetDecoderPlugin(const media_format * format)
should be moved into the plugin Manager. In fact, PluginManager already has
status_t _CreateDecoder(Decoder **decoder, media_codec_info *mci, const 
media_format *format)
which returns a Decoder * (not DecoderPlugin *) and also filles out the 


Other related posts: