[vlc-devel] commit: Fix warning ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jun 26 18:03:12 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jun 26 19:05:13 2008 +0300| [ba9ecc700f9dd868929b81e492ea287f0ed244f6]

Fix warning

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

 modules/video_output/x11/xcommon.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c
index 1bc947d..b1b1a43 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -1627,10 +1627,9 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
 
     if( !p_vout->b_fullscreen )
     {
-        p_win->owner_window = (Window)
-            vout_RequestWindow( p_vout, &p_win->i_x, &p_win->i_y,
-                                &p_win->i_width, &p_win->i_height );
-
+        void *ptr = vout_RequestWindow( p_vout, &p_win->i_x, &p_win->i_y,
+                                        &p_win->i_width, &p_win->i_height );
+        p_win->owner_window = (uintptr_t)ptr;
         xsize_hints.base_width  = xsize_hints.width = p_win->i_width;
         xsize_hints.base_height = xsize_hints.height = p_win->i_height;
         xsize_hints.flags       = PSize | PMinSize;




More information about the vlc-devel mailing list