Update of /cvsroot/freevo/freevo/src/audio/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv801

Modified Files:
        mplayer.py 
Log Message:
fix the refresh bug the way it is handled for xine

Index: mplayer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/plugins/mplayer.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** mplayer.py  20 Sep 2003 01:55:04 -0000      1.19
--- mplayer.py  20 Sep 2003 08:56:24 -0000      1.20
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.20  2003/09/20 08:56:24  dischi
+ # fix the refresh bug the way it is handled for xine
+ #
  # Revision 1.19  2003/09/20 01:55:04  mikeruelle
  # fix refresh issue
***************
*** 157,161 ****
          _debug_('MPlayer.play(): Starting thread, cmd=%s' % command)
              
!         self.thread.start(MPlayerApp, (command, item))
          return None
      
--- 160,164 ----
          _debug_('MPlayer.play(): Starting thread, cmd=%s' % command)
              
!         self.thread.start(MPlayerApp, (command, item, self.refresh))
          return None
      
***************
*** 213,217 ****
      """
  
!     def __init__(self, (app, item)):
          if config.MPLAYER_DEBUG:
              fname_out = os.path.join(config.LOGDIR, 'mplayer_stdout.log')
--- 216,220 ----
      """
  
!     def __init__(self, (app, item, refresh)):
          if config.MPLAYER_DEBUG:
              fname_out = os.path.join(config.LOGDIR, 'mplayer_stdout.log')
***************
*** 235,239 ****
          self.RE_TIME = re.compile("^A: *([0-9]+)").match
        self.RE_TIME_NEW = re.compile("^A: *([0-9]+):([0-9]+)").match
!               
  
      def kill(self):
--- 238,242 ----
          self.RE_TIME = re.compile("^A: *([0-9]+)").match
        self.RE_TIME_NEW = re.compile("^A: *([0-9]+):([0-9]+)").match
!         self.refresh = refresh
  
      def kill(self):
***************
*** 285,290 ****
  
              if self.item.elapsed != self.elapsed:
!               mplayer = plugin.getbyname(plugin.AUDIO_PLAYER)
!                 mplayer.refresh()
              self.elapsed = self.item.elapsed
  
--- 288,292 ----
  
              if self.item.elapsed != self.elapsed:
!                 self.refresh()
              self.elapsed = self.item.elapsed
  




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to