Refactoring in mplayer listener.

This commit is contained in:
daniel-123 2013-02-05 20:11:54 +01:00
parent 71a9a01fd4
commit e48a393635
1 changed files with 4 additions and 1 deletions

View File

@ -187,10 +187,13 @@ class MplayerPlayer(BasePlayer):
line = self.__process.stdout.readline()
if("MPlayer 1" in line):
self.__playerController.notMplayer2()
while(self.__process.poll() is None):
else:
line = line.rstrip("\r\n")
self.__playerController.lineReceived(line)
while(self.__process.poll() is None):
line = self.__process.stdout.readline()
line = line.rstrip("\r\n")
self.__playerController.lineReceived(line)
self.__playerController.drop()
def sendLine(self, line):