mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
mpv - use ulong for setting wid
This commit is contained in:
parent
62eccf78c7
commit
0acac66b17
@ -32,7 +32,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
private MpvWaitEvent _mpvWaitEvent;
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
private delegate int MpvSetOption(IntPtr mpvHandle, byte[] name, int format, ref long data);
|
||||
private delegate int MpvSetOption(IntPtr mpvHandle, byte[] name, int format, ref ulong data);
|
||||
private MpvSetOption _mpvSetOption;
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
@ -744,7 +744,8 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
{
|
||||
return;
|
||||
}
|
||||
var windowId = ownerControl.Handle.ToInt64();
|
||||
|
||||
var windowId = (ulong)ownerControl.Handle.ToInt64();
|
||||
while (returnCode != 0 && iterations > 0)
|
||||
{
|
||||
Application.DoEvents();
|
||||
@ -764,6 +765,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Pause();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user