Recently Written · git

sad

sad (2f30.org simple audio daemon) with a Cygwin/OSS port on branch cygwin

git clone https://github.com/equwal/sad

Log | Files | Refs


commit 4f29a887cfab39e1dfa21fdb6c234b728fb572b4
sin <sin@2f30.org>
2014-12-31 19:28:44 +0000

Style fix, be consistent with the other conditionals

 output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/output.c b/output.c
index 802c3db..d098d18 100644
--- a/output.c
+++ b/output.c
@@ -191,7 +191,7 @@ playoutput(Format *fmt, Outputdesc *desc, void *buf, size_t nbytes)
 		memcpy(inbuf, buf, nbytes);
 	}
 
-	if (desc->fmt.rate == fmt->rate) {
+	if (fmt->rate == desc->fmt.rate) {
 		if (desc->output->play(inbuf, nbytes) < 0) {
 			free(inbuf);
 			return -1;