Author: duncan
Date: Tue Mar  6 19:57:47 2007
New Revision: 9306

Modified:
   branches/rel-1/freevo/src/video/plugins/mplayer.py

Log:
Some command line updates because the vo interface stopped working for directfb


Modified: branches/rel-1/freevo/src/video/plugins/mplayer.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/mplayer.py  (original)
+++ branches/rel-1/freevo/src/video/plugins/mplayer.py  Tue Mar  6 19:57:47 2007
@@ -113,9 +113,6 @@
         self.item_length  = -1
         self.item.elapsed = 0        
 
-        VODEV=config.MPLAYER_VO_DEV
-        VODEVOPTS=config.MPLAYER_VO_DEV_OPTS
-
         if mode == 'file':
             url = item.url[6:]
             self.item_info = mmpython.parse(url)
@@ -145,9 +142,10 @@
        
 
         # Build the MPlayer command
-        command = [ '--prio=%s' % config.MPLAYER_NICE, config.MPLAYER_CMD ] + \
-                  config.MPLAYER_ARGS_DEF.split(' ') + \
-                  [ '-slave', '-ao'] + config.MPLAYER_AO_DEV.split(' ')
+        command = [ '--prio=%s' % config.MPLAYER_NICE, config.MPLAYER_CMD ]
+        command += [ '-slave', '-v', ]
+        command += config.MPLAYER_ARGS_DEF.split(' ')
+        command += [ '-ao'] + config.MPLAYER_AO_DEV.split(' ')
 
         additional_args = []
 
@@ -215,8 +213,7 @@
             mode = 'default'
 
         # Mplayer command and standard arguments
-        command += [ '-v', '-vo', VODEV]
-        command += VODEVOPTS.split(' ')
+        command += [ '-vo', config.MPLAYER_VO_DEV + config.MPLAYER_VO_DEV_OPTS 
]
 
         # mode specific args
         command += config.MPLAYER_ARGS[mode].split(' ')
@@ -293,6 +290,8 @@
 
         command=self.sort_filter(command)
 
+        #_debug_(' '.join(command))
+
         if plugin.getbyname('MIXER'):
             plugin.getbyname('MIXER').reset()
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to