mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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()
|
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],
|
||||||
|
|
Loading…
Reference in a new issue