[vlc-devel] [PATCH 6/6] direct3d9: picture->p_sys is never NULL
Steve Lhomme
robux4 at videolabs.io
Wed Jun 14 15:48:51 CEST 2017
CID #1444702
---
modules/video_output/win32/direct3d9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index a41c0b8ea8..bac1daefe4 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -468,7 +468,7 @@ static void Prepare(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
else if (picture->context)
{
const struct va_pic_context *pic_ctx = (struct va_pic_context*)picture->context;
- if (picture->p_sys && pic_ctx->picsys.surface != picture->p_sys->surface)
+ if (pic_ctx->picsys.surface != picture->p_sys->surface)
{
HRESULT hr;
RECT visibleSource;
--
2.12.1
More information about the vlc-devel
mailing list