mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 23:12:34 +01:00
Try hack for attaching mpv video window
This commit is contained in:
parent
3c6f9183d2
commit
9694fe356c
@ -437,9 +437,13 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
|||||||
_mpvSetOptionString(_mpvHandle, GetUtf8Bytes("no-sub"), GetUtf8Bytes("")); // don't load subtitles
|
_mpvSetOptionString(_mpvHandle, GetUtf8Bytes("no-sub"), GetUtf8Bytes("")); // don't load subtitles
|
||||||
if (ownerControl != null)
|
if (ownerControl != null)
|
||||||
{
|
{
|
||||||
int mpvFormatInt64 = 4;
|
for (int i = 0; i < 3; i++)
|
||||||
var windowId = ownerControl.Handle.ToInt64();
|
{
|
||||||
_mpvSetOption(_mpvHandle, GetUtf8Bytes("wid"), mpvFormatInt64, ref windowId);
|
Application.DoEvents();
|
||||||
|
int mpvFormatInt64 = 4;
|
||||||
|
var windowId = ownerControl.Handle.ToInt64();
|
||||||
|
_mpvSetOption(_mpvHandle, GetUtf8Bytes("wid"), mpvFormatInt64, ref windowId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
DoMpvCommand("loadfile", videoFileName);
|
DoMpvCommand("loadfile", videoFileName);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user