[vlc-devel] [RFC 7/8] libvlc: add an engine context pointer to the callbacks structure

Steve Lhomme robux4 at ycbcr.xyz
Wed Nov 21 12:15:03 CET 2018

On 20/11/2018 17:33, Rémi Denis-Courmont wrote:
> Le tiistaina 20. marraskuuta 2018, 17.42.41 EET Steve Lhomme a écrit :
>> This will be necessary for Direct3D where we need the D3DDeviceContext from
>> the host to render into.
> It does not seem very robust and reasonable for LibVLC and the application to
> share a context from a third library.

For now it will only be used with D3D objects which are refcounted. And 
we also keep a reference to the relevant D3D DLLs in each module that 
use them. So we should be safe on that side.

> But in any case, we normally handle this by returning the context from the
> callback that allocates it - presumably start_engine - not by setting it
> statically.

Yes, it's probably better to put return that in the 
`libvlc_video_setup_cb` call. I wasn't using it for D3D yet.

> -- 
> Реми Дёни-Курмон
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list