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

Modified Files:
        generic.py 
Log Message:
use popen and not childapp

Index: generic.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/record/plugins/generic.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** generic.py  5 Dec 2004 17:10:31 -0000       1.10
--- generic.py  18 Dec 2004 13:44:16 -0000      1.11
***************
*** 42,46 ****
  # freevo imports
  import config
! import childapp
  
  # record imports
--- 42,46 ----
  # freevo imports
  import config
! from util.popen import Process
  
  # record imports
***************
*** 50,63 ****
  log = logging.getLogger('record')
  
! class Childapp(childapp.Instance):
      """
      ChildApp wrapper for use inside a recorder plugin
      """
!     def __init__(self, app, control, debugname = None, doeslogging = 0,
!                  prio = 0):
          """
          Init the childapp
          """
!         childapp.Instance.__init__(self, app, debugname, doeslogging, prio, 0)
          self.control = control
  
--- 50,62 ----
  log = logging.getLogger('record')
  
! class Childapp(Process):
      """
      ChildApp wrapper for use inside a recorder plugin
      """
!     def __init__(self, app, control):
          """
          Init the childapp
          """
!         Process.__init__(self, app)
          self.control = control
  
***************
*** 136,140 ****
              # should be set to the next one
              if len(self.recordings) == 1:
!                 log.info('%s.schedule: scheduled already recording' % 
self.name)
                  return
              log.info('%s.schedule: currently recording' % self.name)
--- 135,139 ----
              # should be set to the next one
              if len(self.recordings) == 1:
!                 log.info('%s.schedule: already scheduled' % self.name)
                  return
              log.info('%s.schedule: currently recording' % self.name)
***************
*** 217,221 ****
              notifier.removeTimer(self.stop_timer)
          timer = max(0, int(rec.stop + rec.stop_padding + 10 - time.time()))
!         log.info('%s.record: add stop timer for %s seconds' % (self.name, 
timer))
          self.stop_timer = notifier.addTimer(timer * 1000, self.stop)
  
--- 216,220 ----
              notifier.removeTimer(self.stop_timer)
          timer = max(0, int(rec.stop + rec.stop_padding + 10 - time.time()))
!         log.info('%s.record: add stop timer for %s sec' % (self.name, timer))
          self.stop_timer = notifier.addTimer(timer * 1000, self.stop)
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to