Add "pause" cmd after load video for MPC - thx mike :)

This commit is contained in:
niksedk 2021-10-17 13:58:43 +02:00
parent 9f0dcf3b68
commit 082fc4cb8a

View File

@ -126,7 +126,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
}; };
_process = Process.Start(_startInfo); _process = Process.Start(_startInfo);
_process?.WaitForInputIdle(); _process?.WaitForInputIdle();
_positionTimer = new Timer { Interval = 100 }; _positionTimer = new Timer { Interval = 100 };
_positionTimer.Tick += PositionTimerTick; _positionTimer.Tick += PositionTimerTick;
} }
@ -134,6 +134,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
private void PositionTimerTick(object sender, EventArgs e) private void PositionTimerTick(object sender, EventArgs e)
{ {
SendMpcMessage(MpcHcCommand.GetCurrentPosition); SendMpcMessage(MpcHcCommand.GetCurrentPosition);
Pause();
} }
private void OnCopyData(object sender, EventArgs e) private void OnCopyData(object sender, EventArgs e)