Update of /cvsroot/freevo/freevo/src/video
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9325

Modified Files:
        videoitem.py 
Log Message:
The much appreciated 'alternate player' patch from den_RDC. Allows you to
switch between your default player and an alternate without restarting 
Freevo.


Index: videoitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/videoitem.py,v
retrieving revision 1.134
retrieving revision 1.135
diff -C2 -d -r1.134 -r1.135
*** videoitem.py        12 May 2004 19:24:54 -0000      1.134
--- videoitem.py        13 May 2004 13:49:24 -0000      1.135
***************
*** 11,14 ****
--- 11,19 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.135  2004/05/13 13:49:24  outlyer
+ # The much appreciated 'alternate player' patch from den_RDC. Allows you to
+ # switch between your default player and an alternate without restarting
+ # Freevo.
+ #
  # Revision 1.134  2004/05/12 19:24:54  dischi
  # remove debug and cvs log
***************
*** 285,288 ****
--- 290,295 ----
          else:
              items = [ (self.play, _('Play')) ]
+             if len(self.possible_player) > 1:
+                 items.append((self.play_alternate, _('Play with alternate player')))
  
          if self.network_play:
***************
*** 330,333 ****
--- 337,346 ----
          """
          self.play(menuw=menuw, arg='-cache 65536')
+         
+     def play_alternate(self, arg=None, menuw=None):
+         """
+         play and use maximum cache with mplayer
+         """
+         self.play(menuw=menuw, arg=arg, alternateplayer=True)
  
  
***************
*** 378,382 ****
  
  
!     def play(self, arg=None, menuw=None):
          """
          play the item.
--- 391,395 ----
  
  
!     def play(self, arg=None, menuw=None, alternateplayer=False):
          """
          play the item.
***************
*** 390,395 ****
                      rating += 100
                  self.possible_player.append((rating, p))
! 
              self.possible_player.sort(lambda l, o: -cmp(l[0], o[0]))
  
          if not self.possible_player:
--- 403,411 ----
                      rating += 100
                  self.possible_player.append((rating, p))
!         
              self.possible_player.sort(lambda l, o: -cmp(l[0], o[0]))
+         
+         if alternateplayer:
+             self.possible_player.reverse()
  
          if not self.possible_player:



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to