libvlc: deprecate AGL vout setter/getter
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 24 Jul 2015 17:14:07 +0000 (19:14 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 24 Jul 2015 17:18:12 +0000 (19:18 +0200)
The QuickDraw vout is gone since  a long time so this remnant is a NO-OP

NEWS
include/vlc/libvlc_media_player.h
lib/media_player.c

diff --git a/NEWS b/NEWS
index 604bc53..6f9af08 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -145,7 +145,8 @@ libVLC:
  * Add libvlc_media_get_type to get the type of the media
  * Add libvlc_media_player_get_full_title_descriptions to get full title info of the media
  * Add libvlc_media_player_get_full_chapter_descriptions to get full chapter info of the media
- * Deprecate libvlc_video_get_title_description, libvlc_video_get_chapter_description
+ * Deprecate libvlc_video_get_title_description, libvlc_video_get_chapter_description,
+   libvlc_media_player_get_agl, libvlc_media_player_set_agl
 
 Logging
  * Support for the SystemD Journal
index b4f716e..0c7351b 100644 (file)
@@ -451,19 +451,15 @@ LIBVLC_API void libvlc_media_player_set_nsobject ( libvlc_media_player_t *p_mi,
 LIBVLC_API void * libvlc_media_player_get_nsobject ( libvlc_media_player_t *p_mi );
 
 /**
- * Set the agl handler where the media player should render its video output.
- *
- * \param p_mi the Media Player
- * \param drawable the agl handler
+ * \deprecated Use libvlc_media_player_set_nsobject instead
  */
+LIBVLC_DEPRECATED
 LIBVLC_API void libvlc_media_player_set_agl ( libvlc_media_player_t *p_mi, uint32_t drawable );
 
 /**
- * Get the agl handler previously set with libvlc_media_player_set_agl().
- *
- * \param p_mi the Media Player
- * \return the agl handler or 0 if none where set
+ * \deprecated Use libvlc_media_player_get_nsobject instead
  */
+LIBVLC_DEPRECATED
 LIBVLC_API uint32_t libvlc_media_player_get_agl ( libvlc_media_player_t *p_mi );
 
 /**
index 83af6cd..66c98db 100644 (file)
@@ -1025,14 +1025,7 @@ void * libvlc_media_player_get_nsobject( libvlc_media_player_t *p_mi )
 void libvlc_media_player_set_agl( libvlc_media_player_t *p_mi,
                                   uint32_t drawable )
 {
-#ifdef __APPLE__
-    var_SetString (p_mi, "avcodec-hw", "");
-    var_SetString (p_mi, "vout", "");
-    var_SetString (p_mi, "window", "none");
-    var_SetInteger (p_mi, "drawable-agl", drawable);
-#else
     (void) p_mi; (void)drawable;
-#endif
 }
 
 /**************************************************************************
@@ -1040,12 +1033,7 @@ void libvlc_media_player_set_agl( libvlc_media_player_t *p_mi,
  **************************************************************************/
 uint32_t libvlc_media_player_get_agl( libvlc_media_player_t *p_mi )
 {
-    assert (p_mi != NULL);
-#ifdef __APPLE__
-    return var_GetInteger (p_mi, "drawable-agl");
-#else
     return 0;
-#endif
 }
 
 /**************************************************************************