shithub: treason

Download patch

ref: e6e5531e1e598ff05caa884cba6eb4ea4b600117
parent: 063050e9aa438f4e88db813d1377b569a442de19
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sat Dec 12 20:44:36 EST 2020

opusdec requires - - as args

--- a/stream_audio.c
+++ b/stream_audio.c
@@ -47,7 +47,11 @@
 			dup(fd = open("/dev/null", OWRITE), 2);
 			close(fd);
 		}
-		execl(prog, prog, nil);
+		/* FIXME why oh why */
+		if(s->fmt == FmtOpus)
+			execl(prog, prog, "-", "-", nil);
+		else
+			execl(prog, prog, nil);
 		sysfatal("exec: %r");
 	}
 	close(p[1]);