[vlc-devel] [PATCH] direct3d9: fix crash when closing without a picture pool
Rémi Denis-Courmont
remi at remlab.net
Fri Jul 7 09:28:29 CEST 2017
Le 7 juillet 2017 08:36:40 GMT+03:00, Steve Lhomme <robux4 at videolabs.io> a écrit :
>It's done in all other windows vout.
>---
> modules/video_output/win32/direct3d9.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>diff --git a/modules/video_output/win32/direct3d9.c
>b/modules/video_output/win32/direct3d9.c
>index 1d281b3116..407c5e81f0 100644
>--- a/modules/video_output/win32/direct3d9.c
>+++ b/modules/video_output/win32/direct3d9.c
>@@ -1048,7 +1048,8 @@ static int
>Direct3D9CreateResources(vout_display_t *vd, video_format_t *fmt)
> static void Direct3D9DestroyResources(vout_display_t *vd)
> {
> Direct3D9DestroyScene(vd);
>- picture_pool_Release(vd->sys->sys.pool);
>+ if (vd->sys->sys.pool)
>+ picture_pool_Release(vd->sys->sys.pool);
> Direct3D9DestroyShaders(vd);
> }
>
>--
>2.12.1
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
Yeah... Maybe this should be rationalized everywhere one way or another someday.
--
Rémi Denis-Courmont
Typed on an inconvenient virtual keyboard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170707/56b78b0c/attachment.html>
More information about the vlc-devel
mailing list