[vlc-devel] [PATCH] libvlc: add a bool return value to the resize callback

Steve Lhomme robux4 at ycbcr.xyz
Fri Nov 16 07:09:53 CET 2018


On 15/11/2018 21:16, Rémi Denis-Courmont wrote:
> Window size is an event/notification. Tje caller cannot handle failure 
> and thus the function is correctly returning void.

This is not about a window. There is no window involved here. It's the 
"offscreen" rendering callback for OpenGL. It renders to whatever the 
host app chooses in libvlc.

And in fact I can see how this code was even originally designed to 
handle failure:

if(sys->width==w&&sys->height==h)

return;

if(!sys->resizeCb)

return;

MakeCurrent(gl);

sys->resizeCb(sys->opaque,w,h);

ReleaseCurrent(gl);

sys->width=w;

sys->height=h;



> -- 
> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez 
> excuser ma brièveté.
>
>
> _______________________________________________
> 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