[vlc-devel] commit: Fix an incorect cast warning (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Aug 25 21:06:01 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 25 20:57:37 2009 +0200| [de688523359f24d20c3e860afcd28604ab88543a] | committer: Jean-Baptiste Kempf 

Fix an incorect cast warning

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

 modules/video_output/msw/directx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c
index 4520511..94e410b 100644
--- a/modules/video_output/msw/directx.c
+++ b/modules/video_output/msw/directx.c
@@ -722,9 +722,9 @@ static void FirstDisplay( vout_thread_t *p_vout, picture_t *p_pic )
 
     if( p_vout->p_sys->b_using_overlay )
     {
+        HBRUSH brush = CreateSolidBrush( p_vout->p_sys->i_rgb_colorkey );
         /* set the colorkey as the backgound brush for the video window */
-        SetClassLongPtr( p_vout->p_sys->hvideownd, GCLP_HBRBACKGROUND,
-                      (LONG_PTR)CreateSolidBrush( p_vout->p_sys->i_rgb_colorkey ) );
+        SetClassLongPtr( p_vout->p_sys->hvideownd, GCLP_HBRBACKGROUND, (LONG_PTR)brush );
     }
     /*
     ** Video window is initially hidden, show it now since we got a




More information about the vlc-devel mailing list