diff -r e55310730feb -r 861b177c521d gmyth-stream/server/plugins/media/mencoder.py --- a/gmyth-stream/server/plugins/media/mencoder.py Thu Apr 12 15:12:12 2007 +0100 +++ b/gmyth-stream/server/plugins/media/mencoder.py Thu Apr 12 20:59:54 2007 +0100 @@ -201,7 +201,7 @@ self.filename = "dvd://" + filename elif self.kind == "myth": - self.filename = "myth://" + filename + self.filename = filename self.gst_pipe = os.pipe() print self.gst_pipe[0] print self.gst_pipe[1] @@ -267,6 +267,7 @@ self.setup_mencoder() ret_val = self.setup_filename(filename) + if not ret_val[0]: return ret_val @@ -332,7 +333,7 @@ if self.gst_pipe: try: gst = [ lib.which("gst-launch-0.10") ] - self.arg_append(gst, "filesrc location=/tmp/mpg/bad_day.mpg") + self.arg_append(gst, "gnomevfssrc location=%s" % self.filename) self.arg_append(gst, "! fdsink fd=%d" % self.gst_pipe[1]) self.gst_pid = Popen(gst, stdout=self.gst_pipe[1], close_fds=True) except Exception, e: