From 185a0f09b109ecebb057d68c9233e31762c1e32e Mon Sep 17 00:00:00 2001 From: niksedk Date: Tue, 18 Aug 2015 21:28:11 +0200 Subject: [PATCH] Fixed possible crash in vlc --- src/Logic/VideoPlayers/LibVlcDynamic.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Logic/VideoPlayers/LibVlcDynamic.cs b/src/Logic/VideoPlayers/LibVlcDynamic.cs index eb61056d3..6de999e90 100644 --- a/src/Logic/VideoPlayers/LibVlcDynamic.cs +++ b/src/Logic/VideoPlayers/LibVlcDynamic.cs @@ -681,6 +681,9 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers private void MouseTimerTick(object sender, EventArgs e) { + if (_mouseTimer == null) + return; + _mouseTimer.Stop(); 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(); }