New libXvMC wrapper.
Thomas Hellström
unichrome at shipmail.org
Wed Sep 22 00:52:04 PDT 2004
Hi
>> There's an _init() function in the wrapper, dlopening the right lib.
>> Without this option, a conflicting _init() function will
>> be linked with the library.
>
> This is why you don't use _init. Either mark the startup function as a
> constructor:
>
> http://gcc.gnu.org/onlinedocs/gcc-3.4.2/gcc/Function-Attributes.html#Function-Attributes
>
Ah Ok. Should've dived into this more carefully.
> or create a startup function that the user has to call, or dlopen the
> right
> lib dynamically at runtime (the way DRI does during glXCreateContext).
>
I guess this is the way to go, since it is how it must be done in the
future when the DDX provides the name.
Thanks.
/Thomas
More information about the xorg
mailing list