[vlc-devel] [PATCH] direct3d11: fix crash when D3D11 fails to find the compiler

Jean-Baptiste Kempf jb at videolan.org
Mon Mar 23 18:14:44 CET 2015


On 23 Mar, Steve Lhomme wrote :
> ---
>  modules/video_output/msw/direct3d11.c | 29 ++++++++++++++++-------------
>  1 file changed, 16 insertions(+), 13 deletions(-)
> 
> diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
> index 18552ee..c486071 100644
> --- a/modules/video_output/msw/direct3d11.c
> +++ b/modules/video_output/msw/direct3d11.c
> @@ -403,24 +403,27 @@ static void Direct3D11Destroy(vout_display_t *vd)
>  
>      vout_display_sys_t *sys = vd->sys;
>  
> +    if( sys != NULL )
> +    {

if sys == NULL, you're dead, you should return.

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list