Update of /cvsroot/freevo/freevo/src/tv/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8660

Modified Files:
        tvtime.py 
Log Message:
removed some old bad code. mplayer debug has been superceded by childapp debug. the 
kill method is just plain bad.

Index: tvtime.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/plugins/tvtime.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** tvtime.py   29 May 2004 23:01:03 -0000      1.35
--- tvtime.py   6 Jun 2004 17:15:10 -0000       1.36
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.36  2004/06/06 17:15:10  mikeruelle
+ # removed some old bad code. mplayer debug has been superceded by childapp debug. 
the kill method is just plain bad.
+ #
  # Revision 1.35  2004/05/29 23:01:03  mikeruelle
  # make better use of freevo channels. getting better video group support slowly
***************
*** 629,662 ****
  
      def __init__(self, (app)):
-         if config.MPLAYER_DEBUG:
-             fname_out = os.path.join(config.LOGDIR, 'tvtime_stdout.log')
-             fname_err = os.path.join(config.LOGDIR, 'tvtime_stderr.log')
-             try:
-                 self.log_stdout = open(fname_out, 'a')
-                 self.log_stderr = open(fname_err, 'a')
-             except IOError:
-                 print
-                 print (('ERROR: Cannot open "%s" and "%s" for ' +
-                         'TVTime logging!') % (fname_out, fname_err))
-                 print 'Please set MPLAYER_DEBUG=0 in local_conf.py, or '
-                 print 'start Freevo from a directory that is writeable!'
-                 print
-             else:
-                 print 'TVTime logging to "%s" and "%s"' % (fname_out, fname_err)
- 
          childapp.ChildApp2.__init__(self, app, stop_osd=1)
-         
- 
-     def kill(self):
-         # Use SIGINT instead of SIGKILL to make sure TVTime shuts
-         # down properly and releases all resources before it gets
-         # reaped by childapp.kill().wait()
-         self.write('quit\n')
-         childapp.ChildApp.kill(self, signal.SIGINT)
-         if DEBUG: print 'Killing tvtime'
-         if config.MPLAYER_DEBUG:
-             self.log_stdout.close()
-             self.log_stderr.close()
- 
  
      def stdout_cb(self, line):
--- 632,636 ----
***************
*** 698,713 ****
              else:
                  if DEBUG: print 'tvtime cmd "%s" not found!' % line
-         
-         if config.MPLAYER_DEBUG:
-             try:
-                 self.log_stdout.write(line + '\n')
-             except ValueError:
-                 pass # File closed
     
-     def stderr_cb(self, line):
-         if config.MPLAYER_DEBUG:
-             try:
-                 self.log_stderr.write(line + '\n')
-             except ValueError:
-                 pass # File closed
- 
--- 672,674 ----



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to