Commit a2e32b31 authored by littlejohn's avatar littlejohn
Browse files

libvlc_video_get_handle function added

parent 3b75df1e
......@@ -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
......
......@@ -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 )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment