Author: tack
Date: Thu Jan  4 15:14:12 2007
New Revision: 2343

Modified:
   trunk/popcorn/src/backends/mplayer/player.py

Log:
-nomouseinput only works when mplayer has x11 support.


Modified: trunk/popcorn/src/backends/mplayer/player.py
==============================================================================
--- trunk/popcorn/src/backends/mplayer/player.py        (original)
+++ trunk/popcorn/src/backends/mplayer/player.py        Thu Jan  4 15:14:12 2007
@@ -368,8 +368,7 @@
         # open the stream and provide information about it. After that, the
         # caller can still change stuff before calling play. Mplayer doesn't
         # work that way so we have to run mplayer with -identify first.
-        args = "-nolirc -nojoystick -nomouseinput -identify " +\
-               "-vo null -ao null -frames 0"
+        args = "-nolirc -nojoystick -identify -vo null -ao null -frames 0"
         ident = kaa.notifier.Process(self._mp_cmd)
         ident.start(args.split(' ') + [ self._file ])
         ident.signals["stdout"].connect_weak(self._child_handle_line)
@@ -399,8 +398,9 @@
             filters += ["outbuf=%s:yv12" % self._frame_shmkey]
 
         args = [ "-v", "-slave", "-osdlevel", "0", "-nolirc", "-nojoystick", \
-                 "-nomouseinput", "-nodouble", "-fixed-vo", "-identify", \
-                 "-framedrop" ]
+                 "-nodouble", "-fixed-vo", "-identify", "-framedrop" ]
+        if 'x11' in self._mp_info['video_drivers']:
+            args.append('-nomouseinput')
 
         if self._window:
 

-------------------------------------------------------------------------
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