From ec8b0a2dd7c1d5e81d710a53b268ad70a37a0693 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Fri, 13 Jun 2008 15:42:24 +0200 Subject: [PATCH] libvlc: libvlc_video_set_parent and libvlc_video_get_parent are deprecated. --- include/vlc/deprecated.h | 24 ++++++++++++++++++++++++ include/vlc/libvlc.h | 22 ---------------------- src/control/video.c | 2 ++ 3 files changed, 26 insertions(+), 22 deletions(-) diff --git a/include/vlc/deprecated.h b/include/vlc/deprecated.h index d88439e73c..92737b0c82 100644 --- a/include/vlc/deprecated.h +++ b/include/vlc/deprecated.h @@ -29,6 +29,30 @@ extern "C" { # endif +/** + * Set the default video output's parent. + * + * This setting 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_e an initialized exception pointer + * @deprecated Use libvlc_media_player_set_drawable + */ +VLC_PUBLIC_API void libvlc_video_set_parent( libvlc_instance_t *, libvlc_drawable_t, libvlc_exception_t * ); + +/** + * Set the default video output parent. + * + * This setting 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_e an initialized exception pointer + * @deprecated Use libvlc_media_player_get_drawable + */ +VLC_PUBLIC_API libvlc_drawable_t libvlc_video_get_parent( libvlc_instance_t *, libvlc_exception_t * ); + /* * This function shall not be used at all. It may lead to crash and race condition. */ diff --git a/include/vlc/libvlc.h b/include/vlc/libvlc.h index bb155dc1cc..7c82df8e9e 100644 --- a/include/vlc/libvlc.h +++ b/include/vlc/libvlc.h @@ -649,28 +649,6 @@ VLC_PUBLIC_API int libvlc_video_reparent( libvlc_media_player_t *, libvlc_drawab */ VLC_PUBLIC_API void libvlc_video_redraw_rectangle( libvlc_media_player_t *, const libvlc_rectangle_t *, libvlc_exception_t * ); -/** - * Set the default video output's parent. - * - * This setting 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_e an initialized exception pointer - */ -VLC_PUBLIC_API void libvlc_video_set_parent( libvlc_instance_t *, libvlc_drawable_t, libvlc_exception_t * ); - -/** - * Set the default video output parent. - * - * This setting 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_e an initialized exception pointer - */ -VLC_PUBLIC_API libvlc_drawable_t libvlc_video_get_parent( libvlc_instance_t *, libvlc_exception_t * ); - /** * Set the default video output size. * diff --git a/src/control/video.c b/src/control/video.c index 867d0b114b..a4beca6314 100644 --- a/src/control/video.c +++ b/src/control/video.c @@ -231,6 +231,7 @@ void libvlc_video_redraw_rectangle( libvlc_media_player_t *p_mi, /* global video settings */ +/* Deprecated use libvlc_media_player_set_drawable() */ void libvlc_video_set_parent( libvlc_instance_t *p_instance, libvlc_drawable_t d, libvlc_exception_t *p_e ) { @@ -245,6 +246,7 @@ void libvlc_video_set_parent( libvlc_instance_t *p_instance, libvlc_drawable_t d } } +/* Deprecated use libvlc_media_player_get_drawable() */ libvlc_drawable_t libvlc_video_get_parent( libvlc_instance_t *p_instance, libvlc_exception_t *p_e ) { VLC_UNUSED(p_e); -- 2.39.2