mirror of https://github.com/Syncplay/syncplay
Fixed MPC crashes when trying to open YouTube videos with emojis (#328)
* Fixed crashes when trying to open YouTube videos with emojis
This commit is contained in:
parent
1ad10632c6
commit
be92ff8b6d
|
@ -86,7 +86,7 @@ class MpcHcApi:
|
|||
_fields_ = [
|
||||
('nMsgPos', ctypes.c_int32),
|
||||
('nDurationMS', ctypes.c_int32),
|
||||
('strMsg', ctypes.c_wchar * (len(message) + 1))
|
||||
('strMsg', ctypes.c_wchar * (len(message.encode('utf-8')) + 1))
|
||||
]
|
||||
cmessage = __OSDDATASTRUCT()
|
||||
cmessage.nMsgPos = MsgPos
|
||||
|
|
Loading…
Reference in New Issue