From d0381117c7bce410b626bc159ab7763fdb022397 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 17 Nov 2007 18:14:46 +0100 Subject: [PATCH] Fix com_pause(). If the vss status is stopped, we must not switch to pause status. --- command.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/command.c b/command.c index 8bafcc04..c1bbba9a 100644 --- a/command.c +++ b/command.c @@ -463,10 +463,11 @@ int com_pause(__a_unused int fd, int argc, __a_unused char * const * argv) if (argc != 1) return -E_COMMAND_SYNTAX; mmd_lock(); - if (!vss_paused()) + if (!vss_paused() && !vss_stopped()) { mmd->events++; - mmd->new_vss_status_flags &= ~VSS_PLAYING; - mmd->new_vss_status_flags &= ~VSS_NEXT; + mmd->new_vss_status_flags &= ~VSS_PLAYING; + mmd->new_vss_status_flags &= ~VSS_NEXT; + } mmd_unlock(); return 1; } -- 2.39.5