Commits

dav1d committed c680a1d

this should fix #8

  • Participants
  • Parent commits fbe2a8e

Comments (0)

Files changed (1)

File MplayerCtrl.py

 DEBUG = False
 
 if os.name == 'nt':
+    from subprocess import STARTUPINFO as _STARTUPINFO, STARTF_USESHOWWINDOW as _STARTF_USESHOWWINDOW
     VO_DRIVER = 'direct3d,gl,'
     AO_DRIVER = 'win32,dsound,'
+    STARTUPINFO = _STARTUPINFO()
+    STARTUPINFO.dwFlags |= _STARTF_USESHOWWINDOW 
 else:
     VO_DRIVER = 'xmega,xv,'
     AO_DRIVER = 'alsa,'
+    STARTUPINFO = None
 
 devnull = getattr(os, 'devnull', 'nul' if os.name == 'nt' else '/dev/null')
 
             try:
                 _debug(args, 'args')
                 self._process = Popen(args, stdin=PIPE, stdout=PIPE,
-                                      stderr=PIPE, universal_newlines=True)
+                                      stderr=PIPE, universal_newlines=True,
+                                      startupinfo=STARTUPINFO)
             except Exception, e:
                 raise BuildProcessError(str(e))
             self._stdin = self._process.stdin