[vlc-devel] [PATCH 1/2] libvlc: remove the aspect ratio getter

Steve Lhomme robux4 at ycbcr.xyz
Mon Jun 3 08:57:13 CEST 2019


It's a value only set by the host so it can keep it by itself.
---
 include/vlc/libvlc_media_player.h | 9 ---------
 lib/libvlc.sym                    | 1 -
 lib/video.c                       | 5 -----
 3 files changed, 15 deletions(-)

diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index d04b57f01e..6ee926e362 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -1486,15 +1486,6 @@ LIBVLC_API float libvlc_video_get_scale( libvlc_media_player_t *p_mi );
  */
 LIBVLC_API void libvlc_video_set_scale( libvlc_media_player_t *p_mi, float f_factor );
 
-/**
- * Get current video aspect ratio.
- *
- * \param p_mi the media player
- * \return the video aspect ratio or NULL if unspecified
- * (the result must be released with free() or libvlc_free()).
- */
-LIBVLC_API char *libvlc_video_get_aspect_ratio( libvlc_media_player_t *p_mi );
-
 /**
  * Set new video aspect ratio.
  *
diff --git a/lib/libvlc.sym b/lib/libvlc.sym
index 01d3c8f72c..888c385a16 100644
--- a/lib/libvlc.sym
+++ b/lib/libvlc.sym
@@ -218,7 +218,6 @@ libvlc_toggle_fullscreen
 libvlc_track_description_list_release
 libvlc_video_get_adjust_float
 libvlc_video_get_adjust_int
-libvlc_video_get_aspect_ratio
 libvlc_video_get_crop_geometry
 libvlc_video_get_size
 libvlc_video_get_cursor
diff --git a/lib/video.c b/lib/video.c
index b3c36b1cbc..e87ded45fc 100644
--- a/lib/video.c
+++ b/lib/video.c
@@ -229,11 +229,6 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale )
     free (pp_vouts);
 }
 
-char *libvlc_video_get_aspect_ratio( libvlc_media_player_t *p_mi )
-{
-    return var_GetNonEmptyString (p_mi, "aspect-ratio");
-}
-
 void libvlc_video_set_aspect_ratio( libvlc_media_player_t *p_mi,
                                     const char *psz_aspect )
 {
-- 
2.17.1



More information about the vlc-devel mailing list