chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
adeb58a
)
get-volume shouldn't corrupt the volume!
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 8 Mar 2009 13:08:37 +0000
(13:08 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 8 Mar 2009 13:08:37 +0000
(13:08 +0000)
server/server.c
patch
|
blob
|
blame
|
history
diff --git
a/server/server.c
b/server/server.c
index 345c2ca48d007fd6cf1a5d7f1b7627d15cf0c08d..b00a70e69af29820c5531274f313bb8fbb3a4828 100644
(file)
--- a/
server/server.c
+++ b/
server/server.c
@@
-829,7
+829,7
@@
static int c_volume(struct conn *c,
sink_writes(ev_writer_sink(c->w), "550 error accessing mixer\n");
return 1;
}
-
api->set_volume
(&l, &r);
+
(set ? api->set_volume : api->get_volume)
(&l, &r);
sink_printf(ev_writer_sink(c->w), "252 %d %d\n", l, r);
if(l != volume_left || r != volume_right) {
volume_left = l;