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