[vlc-devel] commit: libvlc: libvlc_video_set_parent and libvlc_video_get_parent are deprecated. ( Pierre d'Herbemont )

git version control git at videolan.org
Fri Jun 13 15:44:49 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri Jun 13 15:42:24 2008 +0200| [ec8b0a2dd7c1d5e81d710a53b268ad70a37a0693]

libvlc: libvlc_video_set_parent and libvlc_video_get_parent are deprecated.

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

 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 d88439e..92737b0 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 bb155dc..7c82df8 100644
--- a/include/vlc/libvlc.h
+++ b/include/vlc/libvlc.h
@@ -650,28 +650,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.
  *
  * This setting will be used as default for all video outputs.
diff --git a/src/control/video.c b/src/control/video.c
index 867d0b1..a4beca6 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);




More information about the vlc-devel mailing list