From: Pierre d'Herbemont Date: Sun, 15 Jun 2008 13:57:24 +0000 (+0200) Subject: vout: Create the drawable variable from the vout, not libvlc. X-Git-Tag: 0.9.0-test0~18 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1290cd7ea4fb2e980f223da3d4812daef48c2550;p=vlc vout: Create the drawable variable from the vout, not libvlc. --- diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c index 279bd9faa2..4aefc6729a 100644 --- a/src/video_output/vout_intf.c +++ b/src/video_output/vout_intf.c @@ -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: