]> git.sesse.net Git - vlc/commitdiff
vout: Create the drawable variable from the vout, not libvlc.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 15 Jun 2008 13:57:24 +0000 (15:57 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 15 Jun 2008 13:57:24 +0000 (15:57 +0200)
src/video_output/vout_intf.c

index 279bd9faa2b53801c8572f568700eb6b85a76c4b..4aefc6729a889489cc50d9b2e77561f83f522bcf 100644 (file)
@@ -104,8 +104,8 @@ void *vout_RequestWindow( vout_thread_t *p_vout,
     *pi_height_hint = p_vout->i_window_height;
 
     /* Check whether someone provided us with a window ID */
-    var_Get( p_vout->p_libvlc, "drawable", &val );
-    if( val.i_int ) return (void *)(intptr_t)val.i_int;
+    int drawable = var_CreateGetInteger( p_vout, "drawable" );
+    if( drawable ) return (void *)(intptr_t)drawable;
 
 #if 0
     /* FIXME: