mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
when queue cleared, force current audio to stop
This commit is contained in:
parent
dd9d9f4223
commit
2f2a483a49
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ class MplayerMonitor(threading.Thread):
|
|||
while 1:
|
||||
mplayerEvt.wait()
|
||||
mplayerEvt.clear()
|
||||
# clearing queue?
|
||||
if mplayerClear and self.mplayer:
|
||||
self.mplayer.stdin.write("stop\n")
|
||||
# loop through files to play
|
||||
while mplayerQueue:
|
||||
# ensure started
|
||||
|
|
Loading…
Reference in a new issue