vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun May 14 17:21:22 2017 +0300| [a3b24fafb2cf1d9c325749212dfab369d923eb9b] | committer: Rémi Denis-Courmont
playlist: add playlist_ViewPlay() convenience wrapper This wraps playlist_Control() with type safety, and enforces playlist locking. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3b24fafb2cf1d9c325749212dfab369d923eb9b --- include/vlc_playlist.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h index 0c401a9224..a487cdfd62 100644 --- a/include/vlc_playlist.h +++ b/include/vlc_playlist.h @@ -306,6 +306,12 @@ VLC_API void playlist_Deactivate( playlist_t * ); */ VLC_API void playlist_Control( playlist_t *p_playlist, int i_query, bool b_locked, ... ); +static inline void playlist_ViewPlay(playlist_t *pl, playlist_item_t *node, + playlist_item_t *item) +{ + playlist_Control(pl, PLAYLIST_VIEWPLAY, pl_Locked, node, item); +} + /** Get current playing input. The object is retained. */ VLC_API input_thread_t * playlist_CurrentInput( playlist_t *p_playlist ) VLC_USED; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
