don't poll empty mplayer

This commit is contained in:
Damien Elmes 2009-06-15 11:45:11 +09:00
parent e66e66c614
commit 8e92a4dfc8

View file

@ -126,7 +126,7 @@ class MplayerMonitor(threading.Thread):
mplayerCond.wait()
if not self.mplayer:
self.startProcess()
if self.mplayer.poll() is not None:
if self.mplayer != -1 and self.mplayer.poll() is not None:
self.mplayer.wait()
self.startProcess()
nextClears = False