mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
don't poll empty mplayer
This commit is contained in:
parent
e66e66c614
commit
8e92a4dfc8
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class MplayerMonitor(threading.Thread):
|
||||||
mplayerCond.wait()
|
mplayerCond.wait()
|
||||||
if not self.mplayer:
|
if not self.mplayer:
|
||||||
self.startProcess()
|
self.startProcess()
|
||||||
if self.mplayer.poll() is not None:
|
if self.mplayer != -1 and self.mplayer.poll() is not None:
|
||||||
self.mplayer.wait()
|
self.mplayer.wait()
|
||||||
self.startProcess()
|
self.startProcess()
|
||||||
nextClears = False
|
nextClears = False
|
||||||
|
|
Loading…
Reference in a new issue