1.1 --- a/gmyth-stream/server/0.2/plugins/transcoders/mencoder.py Mon May 07 14:26:39 2007 +0100
1.2 +++ b/gmyth-stream/server/0.2/plugins/transcoders/mencoder.py Tue May 08 21:01:03 2007 +0100
1.3 @@ -173,8 +173,13 @@
1.4 outfd.write("OK")
1.5
1.6 # Configuring stdin
1.7 - _stdin = open(self.args["input"])
1.8 - size = int(os.path.getsize(self.args["input"]))
1.9 + try:
1.10 + _stdin = open(self.args["input"])
1.11 + size = int(os.path.getsize(self.args["input"]))
1.12 + except Exception, e:
1.13 + self.log.error("Mencoder stdin setup error: %s" % e)
1.14 + return False
1.15 +
1.16 self.status = 0
1.17 total_read = 0
1.18