[svn r636] * GMyth-Streamer trunk
authormorphbr
Mon May 07 14:26:39 2007 +0100 (2007-05-07)
branchtrunk
changeset 6308b8efd570497
parent 629 7ad2e23504e6
child 631 f90eb1794afd
[svn r636] * GMyth-Streamer
- Changes to not use loading video.
gmyth-stream/server/0.2/plugins/transcoders/mencoder.py
     1.1 --- a/gmyth-stream/server/0.2/plugins/transcoders/mencoder.py	Fri May 04 23:03:05 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.2/plugins/transcoders/mencoder.py	Mon May 07 14:26:39 2007 +0100
     1.3 @@ -262,23 +262,24 @@
     1.4  
     1.5          try:
     1.6              while self.proc and self.proc.poll() == None:
     1.7 -                r, w, x = select([self.proc.stdout], [outfd], [], 0)
     1.8 +
     1.9 +                r, w, x = select([self.proc.stdout], [], [], 0)
    1.10                  if self.proc.stdout in r:
    1.11                      d = self.proc.stdout.read(4096)
    1.12                      outfd.write(d)
    1.13 -                    self.log.debug("Sending tv data: %d" % show_loading)
    1.14 -                    if show_loading > 150000 and show:
    1.15 -                        self.log.debug("Disabling loading video")
    1.16 -                        show = False
    1.17 +                #    self.log.debug("Sending tv data: %d" % show_loading)
    1.18 +                #    if show_loading > 150000 and show:
    1.19 +                #        self.log.debug("Disabling loading video")
    1.20 +                #        show = False
    1.21  
    1.22 -                elif show_loading % 10000 == 0 and show:
    1.23 -                    show_loading += 1
    1.24 -                    d = open("loading.mpg")
    1.25 -                    outfd.write(d.read())
    1.26 -                    self.log.debug("Sendind loading video: %d" % show_loading)
    1.27 +                #elif show_loading % 10000 == 0 and show:
    1.28 +                #    show_loading += 1
    1.29 +                #    d = open("loading.mpg")
    1.30 +                #    outfd.write(d.read())
    1.31 +                #    self.log.debug("Sendind loading video: %d" % show_loading)
    1.32  
    1.33 -                else:
    1.34 -                    show_loading += 1
    1.35 +                #else:
    1.36 +                #    show_loading += 1
    1.37  
    1.38                  #self.log.debug("SHOW_LOADING: %d" % show_loading)
    1.39