[vlc-devel] [RFC 1/6] libvlc: add rendering callbacks for D3D11 and D3D9

Steve Lhomme robux4 at ycbcr.xyz
Fri May 3 08:17:25 CEST 2019

On 5/2/2019 4:31 PM, Rémi Denis-Courmont wrote:
> Le torstaina 2. toukokuuta 2019, 11.10.22 EEST Steve Lhomme a écrit :
>> On 5/2/2019 10:04 AM, Steve Lhomme wrote:
>>> On 4/30/2019 6:41 PM, Rémi Denis-Courmont wrote: What's the point of
>>> this static assertion? Structures of different types cannot
>>>> alias even if they have the same layout and representation, AFAIK.
>>> Because the libvlc API mimicks the vlc_vout_display API I did for
>>> rendering:
>>> https://code.videolan.org/robUx4/vlc/blob/libvlc/callbacks/59/include/vlc_
>>> vout_display.h#L458
>> It's also a safety in case something is added on the display module side
>> and not handled in the libvlc side (either ignoring on purpose or update
>> the API).
> It's much worse actually. You won't know what version the application support
> until you try and fail.

I don't understand. The host application builds with the API it's 
provided. If the version of the API change it will not build, it's not 
going to use an older code path. This can be ensured with multiple 
callbacks as well as one callback and multiple control messages 
(changing the names of the control IDs or the structures associated).

> In the past, we just added new functions so we know up-front what the
> application expects.
> -- 
> レミ・デニ-クールモン
> 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