Fixed mpv problem with unicode filenames (hack?)

This commit is contained in:
Uriziel 2014-10-21 23:21:30 +02:00
parent b47c8a00b3
commit aaac02f6fc

View File

@ -277,7 +277,9 @@ class MplayerPlayer(BasePlayer):
def sendLine(self, line):
try:
line = (line.decode('utf8') + u"\n").encode('utf8')
if not isinstance(line, unicode):
line = line.decode('utf8')
line = (line + u"\n").encode('utf8')
self.__process.stdin.write(line)
except IOError:
pass