mirror of https://github.com/Syncplay/syncplay
Refactoring in mplayer listener.
This commit is contained in:
parent
71a9a01fd4
commit
e48a393635
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue