[vlc-commits] [Git][videolan/vlc][master] 2 commits: libvlc: explicitly set a value for the libvlc_video_fit_mode_t enum values

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Apr 24 09:40:57 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
0eb7be30 by Steve Lhomme at 2024-04-24T08:47:13+00:00
libvlc: explicitly set a value for the libvlc_video_fit_mode_t enum values

Just like the other enums.

- - - - -
9226c3dc by Steve Lhomme at 2024-04-24T08:47:13+00:00
libvlc: mark "fit" API entries as new in libvlc 4.0.0

- - - - -


1 changed file:

- include/vlc/libvlc_media_player.h


Changes:

=====================================
include/vlc/libvlc_media_player.h
=====================================
@@ -151,7 +151,7 @@ typedef enum libvlc_position_t {
  * Enumeration of values used to set the video fitting inside the display area.
  */
 typedef enum libvlc_video_fit_mode_t {
-    libvlc_video_fit_none,    /**< Explicit zoom set by \ref libvlc_video_set_scale */
+    libvlc_video_fit_none = 0,    /**< Explicit zoom set by \ref libvlc_video_set_scale */
     libvlc_video_fit_smaller, /**< Fit inside / to smallest display dimension */
     libvlc_video_fit_larger,  /**< Fit outside / to largest display dimension */
     libvlc_video_fit_width,   /**< Fit to display width */
@@ -1895,6 +1895,8 @@ LIBVLC_API void libvlc_video_set_aspect_ratio( libvlc_media_player_t *p_mi, cons
 /**
  * Get current video display fit mode.
  *
+ * \version LibVLC 4.0.0 or later
+ *
  * \param p_mi the media player
  * \return the video display fit mode.
  */
@@ -1903,6 +1905,8 @@ LIBVLC_API libvlc_video_fit_mode_t libvlc_video_get_display_fit( libvlc_media_pl
 /**
  * Set new video display fit.
  *
+ * \version LibVLC 4.0.0 or later
+ *
  * \param p_mi the media player
  * \param fit new display fit mode
  * \note Invalid fit mode are ignored.



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d56e9c1e7bd642bb5d72d4aba570b9634115fb06...9226c3dcb5afcf61100ae854028a2d220b0d2384

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d56e9c1e7bd642bb5d72d4aba570b9634115fb06...9226c3dcb5afcf61100ae854028a2d220b0d2384
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list