[vlc-devel] commit: vout: Create the drawable variable from the vout, not libvlc. ( Pierre d'Herbemont )

git version control git at videolan.org
Sun Jun 15 15:55:34 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jun 15 15:57:24 2008 +0200| [1290cd7ea4fb2e980f223da3d4812daef48c2550]

vout: Create the drawable variable from the vout, not libvlc.

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

 src/video_output/vout_intf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index 279bd9f..4aefc67 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:




More information about the vlc-devel mailing list