[vlc-commits] direct3d9: fix crash when closing without a picture pool
Steve Lhomme
git at videolan.org
Tue Jul 18 18:54:51 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Jul 7 07:36:40 2017 +0200| [e14221d5a47996782e93d5c25a9be5b0d31c319f] | committer: Jean-Baptiste Kempf
direct3d9: fix crash when closing without a picture pool
It's done in all other windows vout.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e14221d5a47996782e93d5c25a9be5b0d31c319f
---
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);
}
More information about the vlc-commits
mailing list