]> git.sesse.net Git - vlc/commitdiff
libvlc_video_get_handle function added
authorFilippo Carone <littlejohn@videolan.org>
Sun, 25 Feb 2007 16:17:40 +0000 (16:17 +0000)
committerFilippo Carone <littlejohn@videolan.org>
Sun, 25 Feb 2007 16:17:40 +0000 (16:17 +0000)
include/vlc/libvlc.h
src/control/video.c

index c3110986ba191564f77ceae108bcaf43ecfc900e..db1aa616c9b8ab56b0eea97c28de283ea0ec6d0a 100644 (file)
@@ -431,6 +431,15 @@ VLC_PUBLIC_API int libvlc_video_reparent( libvlc_input_t *, libvlc_drawable_t, l
  */
 VLC_PUBLIC_API void libvlc_video_set_parent( libvlc_instance_t *, libvlc_drawable_t, libvlc_exception_t * );
 
+/**
+ * Set the default video output parent
+ *  this settings will be used as default for all video outputs
+ * \param p_instance libvlc instance
+ * \param drawable the new parent window (Drawable on X11, CGrafPort on MacOSX, HWND on Win32)
+ * \param p_exception an initialized exception
+ */
+VLC_PUBLIC_API libvlc_drawable_t libvlc_video_get_handle( libvlc_instance_t *, libvlc_exception_t * );
+
 /**
  * Set the default video output size
  *  this settings will be used as default for all video outputs
index 16dcc07655a512c586667232aaa4eaf2ce0c8e87..6f137e8647a3ab9d62eaf83bfb585d177423865e 100644 (file)
@@ -260,6 +260,16 @@ void libvlc_video_set_parent( libvlc_instance_t *p_instance, libvlc_drawable_t d
     }
 }
 
+libvlc_drawable_t libvlc_video_get_handle( libvlc_instance_t *p_instance, libvlc_exception_t *p_e )
+{
+    libvlc_drawable_t result;
+    
+    result = var_GetInteger( p_instance->p_libvlc_int, "drawable" );
+    
+    return result;
+}
+
+
 void libvlc_video_set_size( libvlc_instance_t *p_instance, int width, int height,
                            libvlc_exception_t *p_e )
 {