Commit 43a34ee9 authored by Thomas Guillem's avatar Thomas Guillem

lib: add libvlc_media_list_player_set_pause

(cherry picked from commit 0e89b88b)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 677da9d5
......@@ -139,6 +139,17 @@ void libvlc_media_list_player_play(libvlc_media_list_player_t * p_mlp);
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
* \param do_pause play/resume if zero, pause if non-zero
* \version LibVLC 3.0.0 or later
*/
LIBVLC_API
void libvlc_media_list_player_set_pause(libvlc_media_list_player_t * p_mlp,
int do_pause);
/**
* Is media list playing?
*
......
......@@ -654,6 +654,14 @@ void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp)
unlock(p_mlp);
}
void libvlc_media_list_player_set_pause(libvlc_media_list_player_t * p_mlp,
int do_pause)
{
lock(p_mlp);
libvlc_media_player_set_pause(p_mlp->p_mi, do_pause);
unlock(p_mlp);
}
/**************************************************************************
* is_playing (Public)
**************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment