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

Rémi Denis-Courmont remi at remlab.net
Tue Mar 24 10:50:37 CET 2015


Le 2015-03-24 12:39, Steve Lhomme a écrit :
> --
> replaces the previous patch with the same name
> ---
>  modules/video_output/msw/direct3d11.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/modules/video_output/msw/direct3d11.c
> b/modules/video_output/msw/direct3d11.c
> index 3cc10b9..718d5b9 100644
> --- a/modules/video_output/msw/direct3d11.c
> +++ b/modules/video_output/msw/direct3d11.c
> @@ -399,6 +399,8 @@ static void Direct3D11Destroy(vout_display_t *vd)
>
>      vout_display_sys_t *sys = vd->sys;
>
> +    if( sys==NULL )
> +        return;

That should not even be possible IMO. The Open()/Direct3D11Create() 
code is rather ugly if you ask.

>  # if 0
>      if (sys->hdxgi_dll)
>          FreeLibrary(sys->hdxgi_dll);

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list