]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
open_and_update_audio_file(): Interchange two arguments.
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index e470a737d4c9224bf06336c02f02c77ff1c8fa24..46fb3196c4c2155be65b361e9f1fb31715693e19 100644 (file)
--- 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.
  *