mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
don't error out if sound is missing on win32
This commit is contained in:
parent
ab5c1621e3
commit
f7a813831c
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ def queueMplayer(path):
|
|||
ensureMplayerThreads()
|
||||
while mplayerEvt.isSet():
|
||||
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
|
||||
# temporary file instead
|
||||
(fd, name) = tempfile.mkstemp(suffix=os.path.splitext(path)[1],
|
||||
|
|
Loading…
Reference in a new issue