X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=vss.c;h=46fb3196c4c2155be65b361e9f1fb31715693e19;hb=f491dc59b5eee838165b60e7815a06139fed7f74;hp=e470a737d4c9224bf06336c02f02c77ff1c8fa24;hpb=b5d4ebe6e9694c7aba429c6a4a0cc30c25e1640f;p=paraslash.git 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. *