Skip to content

Commit

Permalink
Refactoring in mplayer listener.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-123 committed Feb 5, 2013
1 parent 71a9a01 commit e48a393
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syncplay/players/mplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,13 @@ def run(self):
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):
Expand Down

0 comments on commit e48a393

Please sign in to comment.