[vlc-devel] [PATCH 4/4] libvlc: deprecate libvlc_video_set_subtitle_file

Thomas Guillem thomas at gllm.fr
Fri May 27 12:45:16 CEST 2016


---
 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 ce09027..2ace5a6 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -1171,15 +1171,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.
  *
-- 
2.8.1



More information about the vlc-devel mailing list