#11018: [Media Kit]: BMediaFormats::GetFormatFor doesn't find any formats anymore -------------------------+------------------------------------------------- Reporter: colin | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: Unscheduled Component: | Version: R1/Development Kits/Media Kit | Keywords: BMediaFormats, GetFormatFor, DVB, Resolution: | ffmpeg Blocked By: | Blocking: Has a Patch: 0 | Platform: All -------------------------+------------------------------------------------- Comment (by colin): == Workaround == You can work around this bug by calling get_next_encoder (defined in BMediaFormats.h) before calling a method of BMediaFormats. The workaround triggers the loading of all media plugins prior to using methods of class BMediaFormats. Using the function get_next_encoder() is used because of the following facts 1. It is publicly available and thus can be used by 3rd party apps, too. 2. It is already available by including BMediaFormats.h, so there is no need to include another header for this workaround. You can see the workaround applied here: http://cgit.haiku- os.org/haiku/commit/?id=hrev47475 -- Ticket URL: <https://dev.haiku-os.org/ticket/11018#comment:1> Haiku <https://dev.haiku-os.org> Haiku - the operating system.