]> git.sesse.net Git - vlc/commitdiff
Compile fixes (untested)
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Fri, 20 Jun 2008 17:55:22 +0000 (20:55 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Fri, 20 Jun 2008 17:55:22 +0000 (20:55 +0300)
modules/gui/skins2/src/skin_main.cpp

index a994c7a9c1ef3e2dce354a3fcc1790f141014675..cf55bb51f964734fbadf2085ac01e4a7d5597ac0 100644 (file)
@@ -31,6 +31,7 @@
 #include <vlc_input.h>
 #include <vlc_demux.h>
 #include <vlc_playlist.h>
+#include <vlc_window.h>
 
 #include "dialogs.hpp"
 #include "os_factory.hpp"
@@ -262,15 +263,15 @@ static int WindowOpen( vlc_object_t *p_this )
     intf_thread_t *pIntf = (intf_thread_t *)
         vlc_object_find_name( p_this, "skins2", FIND_ANYWHERE );
 
-    if( p_intf == NULL )
+    if( pIntf == NULL )
         return VLC_EGENERIC;
 
     /* FIXME: most probably not thread-safe,
      * albeit no worse than ever before */
-    pWind->handle = VlcProc::getWindow( pIntf, pWnd->vout,
-                                        &pWnd->pos_x, &pWnd->pos_y,
-                                        &pWnd->width, &pWnd->height );
-    pWnd->p_private = p_intf;
+    pWnd->handle = VlcProc::getWindow( pIntf, pWnd->vout,
+                                       &pWnd->pos_x, &pWnd->pos_y,
+                                       &pWnd->width, &pWnd->height );
+    pWnd->p_private = pIntf;
     pWnd->control = &VlcProc::controlWindow
     return VLC_SUCCESS;
 }