[vlc-commits] Deprecate libvlc_media_player_get_fps()

Rémi Denis-Courmont git at videolan.org
Sat Oct 24 20:33:37 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 24 21:27:36 2015 +0300| [1bfa201653a76d08816cf672d60a0d1d8bb3f866] | committer: Rémi Denis-Courmont

Deprecate libvlc_media_player_get_fps()

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

 include/vlc/libvlc_media_player.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index d181d0b..6614340 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -859,9 +859,16 @@ LIBVLC_API libvlc_state_t libvlc_media_player_get_state( libvlc_media_player_t *
 /**
  * Get movie fps rate
  *
+ * This function is provided for backward compatibility. It cannot deal with
+ * multiple video tracks. In LibVLC versions prior to 3.0, it would also fail
+ * if the file format did not convey the frame rate explicitly.
+ *
+ * \deprecated Consider using libvlc_media_tracks_get() instead.
+ *
  * \param p_mi the Media Player
  * \return frames per second (fps) for this playing movie, or 0 if unspecified
  */
+LIBVLC_DEPRECATED
 LIBVLC_API float libvlc_media_player_get_fps( libvlc_media_player_t *p_mi );
 
 /** end bug */



More information about the vlc-commits mailing list