diff -r 2b5355061b66 -r 12a61040588d gmyth-stream/server/plugins/media/mencoder.py --- a/gmyth-stream/server/plugins/media/mencoder.py Wed Apr 04 23:30:44 2007 +0100 +++ b/gmyth-stream/server/plugins/media/mencoder.py Mon Apr 09 15:20:37 2007 +0100 @@ -35,7 +35,7 @@ for opt in options: if opt == "local": - self.mplayer = os.popen("which mplayer").read().strip() + self.mplayer = lib.which("mplayer") elif opt.find("language=") >= 0: try: @@ -57,7 +57,7 @@ msg = "dvd://" + msg self.mplayer += " " + msg - self.mplayer_pid = Popen(self.mplayer, shell=True) + self.mplayer_pid = Popen(self.mplayer, shell=True, close_fds=True) def setup_mencoder(self): self.path = self.config.get("Mencoder", "path") @@ -169,7 +169,8 @@ lib.log("Starting Mencoder: %s %s" % (self.path, self.args) ) # exec Mencoder if self.mencoder_old: - self.mencoder_pid = Popen(self.path + self.args, shell=True) + self.mencoder_pid = Popen(self.path + self.args, shell=True, + close_fds=True) self.pout = open(self.fifo) else: self.path += self.args