[vlc-commits] direct3d9: picture->p_sys is never NULL

Steve Lhomme git at videolan.org
Wed Jun 14 16:36:46 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Jun 14 15:48:51 2017 +0200| [4e61cab26988a95e23bdd68a11da9728354579f9] | committer: Hugo Beauzée-Luyssen

direct3d9: picture->p_sys is never NULL

CID #1444702

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e61cab26988a95e23bdd68a11da9728354579f9
---

 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;



More information about the vlc-commits mailing list