diff -r 823dad73a2c2 -r 2061bf4c30c7 gmyth-stream/server/0.3/plugins/transcoders/mencoder_lib/mythtv.py --- a/gmyth-stream/server/0.3/plugins/transcoders/mencoder_lib/mythtv.py Sat Jun 30 14:16:59 2007 +0100 +++ b/gmyth-stream/server/0.3/plugins/transcoders/mencoder_lib/mythtv.py Tue Aug 28 08:30:10 2007 +0100 @@ -7,8 +7,6 @@ from select import select -buffer_size = 1024 * 64 - def _setup_mythfilename(self): # mythtv:mythtv@192.168.3.110:6543/1002_20070426230000.nuv try: @@ -91,10 +89,8 @@ r, w, x = select([self.gmyth.stderr, self.proc.stdout], [], [], 0) if self.proc.stdout in r: - d = self.proc.stdout.read(buffer_size) - outfd.write("%x\r\n", len(d)) + d = self.proc.stdout.read(4096) outfd.write(d) - outfd.write("\r\n") if self.gmyth.stderr in r: partial = self.gmyth.stderr.readline() @@ -102,8 +98,6 @@ self.status = utils.progress_bar(int(partial), int(size), 50) - outfd.write("0\r\n\r\n") - except IndexError, e: pass except Exception, e: