mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
commit
5ba1be6c5b
@ -53,7 +53,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
if (_hunspellHandle != IntPtr.Zero)
|
||||
{
|
||||
@ -74,7 +74,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
|
||||
{
|
||||
//ReleaseManagedResources();
|
||||
}
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
if (_hunspellHandle != IntPtr.Zero)
|
||||
{
|
||||
@ -67,7 +67,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
|
||||
{
|
||||
//ReleaseManagedResources();
|
||||
}
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -211,7 +211,7 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
|
||||
{
|
||||
//ReleaseManagedResources();
|
||||
}
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -331,7 +331,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
Dispose();
|
||||
}
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -374,7 +374,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
DoMpvCommand("quit");
|
||||
}
|
||||
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -854,7 +854,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
|
||||
public override event EventHandler OnVideoEnded;
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -924,7 +924,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
}
|
||||
Application.DoEvents();
|
||||
}
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
|
||||
private void DisposeVLC(object player)
|
||||
{
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
public override event EventHandler OnVideoLoaded;
|
||||
@ -218,7 +218,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -262,7 +262,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
_videoEndTimer = null;
|
||||
}
|
||||
}
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,6 +12,8 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
|
||||
{
|
||||
public class MpcHc : VideoPlayer, IDisposable
|
||||
{
|
||||
private readonly object _locker = new object();
|
||||
|
||||
private const string ModePlay = "0";
|
||||
private const string ModePause = "1";
|
||||
private string _playMode = string.Empty;
|
||||
@ -433,11 +435,11 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
|
||||
|
||||
public override event EventHandler OnVideoEnded;
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
try
|
||||
{
|
||||
lock (this)
|
||||
lock (_locker)
|
||||
{
|
||||
if (_mpcHandle != IntPtr.Zero)
|
||||
{
|
||||
@ -497,7 +499,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
|
||||
}
|
||||
_startInfo = null;
|
||||
}
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
@ -294,7 +294,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
Dispose();
|
||||
}
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -345,7 +345,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
_videoLoader = null;
|
||||
}
|
||||
}
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -550,7 +550,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
Dispose();
|
||||
}
|
||||
|
||||
private void ReleaseUnmangedResources()
|
||||
private void ReleaseUnmanagedResources()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -603,7 +603,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
ReleaseUnmangedResources();
|
||||
ReleaseUnmanagedResources();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user