From 77d2f77d29e7653bdf5659962782f80e8a643166 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 17 Nov 2007 18:15:11 +0100 Subject: [PATCH] Introduce vss_stopped(). --- vss.c | 12 ++++++++++++ vss.h | 1 + 2 files changed, 13 insertions(+) diff --git a/vss.c b/vss.c index e470a737..46fb3196 100644 --- a/vss.c +++ b/vss.c @@ -84,6 +84,18 @@ unsigned int vss_paused(void) && !(mmd->new_vss_status_flags & VSS_PLAYING); } +/** + * Check if the vss is currently stopped. + * + * \return Greater than zero if paused, zero otherwise. + * + */ +unsigned int vss_stopped(void) +{ + return (mmd->new_vss_status_flags & VSS_NEXT) + && !(mmd->new_vss_status_flags & VSS_PLAYING); +} + /** * Initialize the virtual streaming system. * diff --git a/vss.h b/vss.h index c521e0dd..eb3685fe 100644 --- a/vss.h +++ b/vss.h @@ -13,6 +13,7 @@ unsigned int vss_playing(void); unsigned int vss_next(void); unsigned int vss_repos(void); unsigned int vss_paused(void); +unsigned int vss_stopped(void); char *vss_get_header(size_t *header_len); struct timeval *vss_chunk_time(void); const char *supported_audio_formats(void); -- 2.39.2