Commit 5f08edfe authored by Felix Paul Kühne's avatar Felix Paul Kühne

libvlc: deprecate AGL vout setter/getter

The QuickDraw vout is gone since  a long time so this remnant is a NO-OP
parent 5e3ceea1
......@@ -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
......
......@@ -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 );
/**
......
......@@ -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
}
/**************************************************************************
......
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