don't error out if sound is missing on win32

This commit is contained in:
Damien Elmes 2011-01-14 05:28:32 +09:00
parent ab5c1621e3
commit f7a813831c

View file

@ -205,7 +205,7 @@ def queueMplayer(path):
ensureMplayerThreads() ensureMplayerThreads()
while mplayerEvt.isSet(): while mplayerEvt.isSet():
time.sleep(0.1) time.sleep(0.1)
if tmpdir: if tmpdir and os.path.exists(path):
# mplayer on windows doesn't like the encoding, so we create a # mplayer on windows doesn't like the encoding, so we create a
# temporary file instead # temporary file instead
(fd, name) = tempfile.mkstemp(suffix=os.path.splitext(path)[1], (fd, name) = tempfile.mkstemp(suffix=os.path.splitext(path)[1],