projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b5f380
)
Fix com_pause().
author
Andre Noll
<maan@systemlinux.org>
Sat, 17 Nov 2007 17:14:46 +0000
(18:14 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 17 Nov 2007 17:14:46 +0000
(18:14 +0100)
If the vss status is stopped, we must not switch to pause status.
command.c
patch
|
blob
|
history
diff --git
a/command.c
b/command.c
index 8bafcc0418995c0bb8c42b92fa08d996a4f2f8e1..c1bbba9aef86d7fccc936d2230f591ce3eb734d4 100644
(file)
--- 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;
}