Don't dup file descriptors

This commit is contained in:
Steven Robertson 2012-07-29 12:24:21 -07:00
parent e4fb94754f
commit 769f53cce0

View File

@ -159,8 +159,7 @@ class X264Output(Output, ClsMod):
extras += ['--output-csp', 'i420', '--chroma-qp-offset', '24']
else:
extras += ['--output-csp', self.csp]
subp = Popen(self.args + extras, stdin=PIPE, stderr=PIPE,
stdout=os.dup(outf.fileno()))
subp = Popen(self.args + extras, stdin=PIPE, stderr=PIPE, stdout=outf)
return outf, subp
def _spawn(self, framesize):