Fixed MPC displaying OSD with utf8 characters improperly

This commit is contained in:
Uriziel 2013-01-28 00:34:27 +01:00
parent c420dfd534
commit 19eafc06eb

View File

@ -79,6 +79,7 @@ class MpcHcApi:
self.__listener.SendCommand(self.CMD_SETSPEED, unicode(rate))
def sendOsd(self, message, MsgPos=constants.MPC_OSD_POSITION, DurationMs=(constants.OSD_DURATION*1000)):
message = message.decode()
class __OSDDATASTRUCT(ctypes.Structure):
_fields_ = [
('nMsgPos', ctypes.c_int32),