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

Modified Files:
        mplayer.py 
Log Message:
expand the <audio> parsing in fxd files

Index: mplayer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/plugins/mplayer.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** mplayer.py  22 Nov 2003 15:30:55 -0000      1.26
--- mplayer.py  6 Dec 2003 13:43:35 -0000       1.27
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.27  2003/12/06 13:43:35  dischi
+ # expand the <audio> parsing in fxd files
+ #
  # Revision 1.26  2003/11/22 15:30:55  dischi
  # support more than one player
***************
*** 145,159 ****
  
          extra_opts = item.mplayer_options
!         if network_play and filename.endswith('m3u') and \
!                extra_opts.find('-playlist') == -1:
!             extra_opts += ' -playlist'
  
          if network_play:
              extra_opts += ' -cache 100'
  
          command = '%s -vo null -ao %s %s %s' % (mpl, config.MPLAYER_AO_DEV, demux,
                                                  extra_opts)
!         
          command = command.replace('\n', '').split(' ')
          command.append(filename)
          
--- 148,176 ----
  
          extra_opts = item.mplayer_options
! 
!         is_playlist = False
!         if hasattr(item, 'is_playlist') and item.is_playlist:
!             is_playlist = True
!             
!         if network_play and filename.endswith('m3u'):
!             is_playlist = True
  
          if network_play:
              extra_opts += ' -cache 100'
  
+         if hasattr(item, 'reconnect') and item.reconnect:
+             extra_opts += ' -loop 0'
+             
          command = '%s -vo null -ao %s %s %s' % (mpl, config.MPLAYER_AO_DEV, demux,
                                                  extra_opts)
! 
!         if command.find('-playlist') > 0:
!             command = command.replace('-playlist', '')
!             
          command = command.replace('\n', '').split(' ')
+ 
+         if is_playlist:
+             command.append('-playlist')
+             
          command.append(filename)
          




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to