# HG changeset patch # User morphbr # Date 1178544399 -3600 # Node ID 8b8efd570497b5fed2dcf0a18dee924f9e13a8ce # Parent 7ad2e23504e6c057bb582014b0ca654f9c1c0f00 [svn r636] * GMyth-Streamer - Changes to not use loading video. diff -r 7ad2e23504e6 -r 8b8efd570497 gmyth-stream/server/0.2/plugins/transcoders/mencoder.py --- a/gmyth-stream/server/0.2/plugins/transcoders/mencoder.py Fri May 04 23:03:05 2007 +0100 +++ b/gmyth-stream/server/0.2/plugins/transcoders/mencoder.py Mon May 07 14:26:39 2007 +0100 @@ -262,23 +262,24 @@ try: while self.proc and self.proc.poll() == None: - r, w, x = select([self.proc.stdout], [outfd], [], 0) + + r, w, x = select([self.proc.stdout], [], [], 0) if self.proc.stdout in r: d = self.proc.stdout.read(4096) outfd.write(d) - self.log.debug("Sending tv data: %d" % show_loading) - if show_loading > 150000 and show: - self.log.debug("Disabling loading video") - show = False + # self.log.debug("Sending tv data: %d" % show_loading) + # if show_loading > 150000 and show: + # self.log.debug("Disabling loading video") + # show = False - elif show_loading % 10000 == 0 and show: - show_loading += 1 - d = open("loading.mpg") - outfd.write(d.read()) - self.log.debug("Sendind loading video: %d" % show_loading) + #elif show_loading % 10000 == 0 and show: + # show_loading += 1 + # d = open("loading.mpg") + # outfd.write(d.read()) + # self.log.debug("Sendind loading video: %d" % show_loading) - else: - show_loading += 1 + #else: + # show_loading += 1 #self.log.debug("SHOW_LOADING: %d" % show_loading)