Fixed possible crash in vlc

This commit is contained in:
niksedk 2015-08-18 21:28:11 +02:00
parent 4cee35079b
commit 185a0f09b1

View File

@ -681,6 +681,9 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
private void MouseTimerTick(object sender, EventArgs e) private void MouseTimerTick(object sender, EventArgs e)
{ {
if (_mouseTimer == null)
return;
_mouseTimer.Stop(); _mouseTimer.Stop();
if (_parentForm != null && _ownerControl != null && _ownerControl.Visible && _parentForm.ContainsFocus && IsLeftMouseButtonDown()) if (_parentForm != null && _ownerControl != null && _ownerControl.Visible && _parentForm.ContainsFocus && IsLeftMouseButtonDown())
{ {
@ -700,6 +703,8 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
} }
} }
} }
if (_mouseTimer == null)
return;
_mouseTimer.Start(); _mouseTimer.Start();
} }