Delay loading of GStreamer DLLs on Windows

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue Dec 8 07:22:57 PST 2015


Le mardi 08 décembre 2015 à 14:45 +0000, Andy Robinson a écrit :
> Does anyone know a way around this? Have any of you written a Windows
> app that uses GStreamer if the DLLs are present, but runs without
> them 
> if they aren't?
> 
> There is one obvious but clumsy workaround: use explicit LoadLibrary,
> then locate pointers to all the desired functions & data. Horrible,
> and 
> it seems to me that it would involve pretty much re-writing all the
> gst 
> header files.

I would opt for another solution. Instead of trying to delay load a
library not designed for that, I would enclose all my GStreamer needs
in a simple (function only) small library. That library would link
directly to GStreamer. Then all I'd have to do is load that simplier
library, with dlopen or delay load (whatever works).

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151208/6f1d52ca/attachment.sig>


More information about the gstreamer-devel mailing list