mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
restart mplayer if it has stopped
This commit is contained in:
parent
8d3678b9fb
commit
7cac17a543
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,9 @@ class MplayerMonitor(threading.Thread):
|
|||
mplayerCond.wait()
|
||||
if not self.mplayer:
|
||||
self.startProcess()
|
||||
if self.mplayer.poll() is not None:
|
||||
self.mplayer.wait()
|
||||
self.startProcess()
|
||||
nextClears = False
|
||||
while mplayerQueue:
|
||||
item = mplayerQueue.pop(0)
|
||||
|
|
Loading…
Reference in a new issue