restart mplayer if it has stopped

This commit is contained in:
Damien Elmes 2009-06-15 11:26:42 +09:00
parent 8d3678b9fb
commit 7cac17a543

View file

@ -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)