[vlc-commits] libvlc: deprecate libvlc_video_set_subtitle_file

Thomas Guillem git at videolan.org
Tue May 31 16:23:36 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 27 12:17:14 2016 +0200| [a49d7a781e9598997b92796517646c37f86a2d59] | committer: Thomas Guillem

libvlc: deprecate libvlc_video_set_subtitle_file

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

 include/vlc/deprecated.h          |   11 +++++++++++
 include/vlc/libvlc_media_player.h |    9 ---------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/include/vlc/deprecated.h b/include/vlc/deprecated.h
index 735a898..c38e9c8 100644
--- a/include/vlc/deprecated.h
+++ b/include/vlc/deprecated.h
@@ -117,6 +117,17 @@ LIBVLC_DEPRECATED LIBVLC_API libvlc_track_description_t *
 LIBVLC_DEPRECATED LIBVLC_API libvlc_track_description_t *
         libvlc_video_get_chapter_description( libvlc_media_player_t *p_mi, int i_title );
 
+/**
+ * Set new video subtitle file.
+ * \deprecated Use libvlc_media_player_add_slave() instead.
+ *
+ * \param p_mi the media player
+ * \param psz_subtitle new video subtitle file
+ * \return the success status (boolean)
+ */
+LIBVLC_DEPRECATED LIBVLC_API int
+libvlc_video_set_subtitle_file( libvlc_media_player_t *p_mi, const char *psz_subtitle );
+
 /** @}*/
 
 /**
diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index 8b1f593..f047c4d 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -1170,15 +1170,6 @@ LIBVLC_API libvlc_track_description_t *
 LIBVLC_API int libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu );
 
 /**
- * Set new video subtitle file.
- *
- * \param p_mi the media player
- * \param psz_subtitle new video subtitle file
- * \return the success status (boolean)
- */
-LIBVLC_API int libvlc_video_set_subtitle_file( libvlc_media_player_t *p_mi, const char *psz_subtitle );
-
-/**
  * Get the current subtitle delay. Positive values means subtitles are being
  * displayed later, negative values earlier.
  *



More information about the vlc-commits mailing list