Fixed error with mpv and utf8 osd
This commit is contained in:
parent
698c083c56
commit
b814564fab
@ -243,7 +243,7 @@ class MplayerPlayer(BasePlayer):
|
||||
|
||||
def sendLine(self, line):
|
||||
try:
|
||||
line = (line + "\n").encode('utf8')
|
||||
line = (line.decode('utf8') + u"\n").encode('utf8')
|
||||
self.__process.stdin.write(line)
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user