[vlc-devel] [PATCH 3/3] lib: deprecate libvlc_media_list_player_pause
Thomas Guillem
thomas at gllm.fr
Fri Dec 8 14:23:47 CET 2017
Because the pause state can be changed internally by VLC core and you can never
know if this function will pause or unpause.
---
include/vlc/deprecated.h | 10 ++++++++++
include/vlc/libvlc_media_list_player.h | 8 --------
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/include/vlc/deprecated.h b/include/vlc/deprecated.h
index 1aa7f8b5b1..b8f373299b 100644
--- a/include/vlc/deprecated.h
+++ b/include/vlc/deprecated.h
@@ -288,6 +288,16 @@ LIBVLC_DEPRECATED int
libvlc_media_list_add_file_content( libvlc_media_list_t * p_ml,
const char * psz_uri );
+/**
+ * Toggle pause (or resume) media list
+ *
+ * \deprecated Use libvlc_media_list_player_set_pause() instead
+ *
+ * \param p_mlp media list player instance
+ */
+LIBVLC_DEPRECATED LIBVLC_API
+void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp);
+
/** @}*/
/**
diff --git a/include/vlc/libvlc_media_list_player.h b/include/vlc/libvlc_media_list_player.h
index 04f7d9b9f0..15f8d3c75f 100644
--- a/include/vlc/libvlc_media_list_player.h
+++ b/include/vlc/libvlc_media_list_player.h
@@ -132,14 +132,6 @@ LIBVLC_API
void libvlc_media_list_player_play(libvlc_media_list_player_t * p_mlp);
/**
- * Toggle pause (or resume) media list
- *
- * \param p_mlp media list player instance
- */
-LIBVLC_API
-void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp);
-
-/**
* Pause or resume media list
*
* \param p_mlp media list player instance
--
2.11.0
More information about the vlc-devel
mailing list