[vlc-devel] [PATCH 1/2] Add a file extension dynamic manager to libvlc.

Rémi Denis-Courmont remi at remlab.net
Mon Mar 2 16:23:56 CET 2009

On Mon, 2 Mar 2009 15:45:55 +0100, ßєŋ <sashipa.ben at gmail.com> wrote:
> Every demuxer should be able to add extensions in the future.
> Currently all you have to do is to call fileext_Add() in the module
> init code. Caching is not implemented yet. For what I have seen it
> should not be to difficult to add a string with a list of extension to
> the module cache. I'll be glad to work on it as soon as we get a
> agreement for this part.

I am afraid this is a tad optimistic.

Plugin descriptors are not supposed to be run-time dependent. The plugins
cache cannot handle that properly. Indeed the only remaining piece of truly
run-time-dependent data, the pf_open and pf_close pointers, is known to
cause corruption in the plugins cache in certain corner cases.

Of course, it would be possible to register extensions statically. But
then, we may have problem with certain libraries where we don't know that
information at compile time. Then again, it would be no worse than now, so
it's an acceptable limitation.

Rémi Denis-Courmont

More information about the vlc-devel mailing list