This commit is contained in:
Frank Skare
2020-05-06 18:43:20 +02:00
parent 4f96835e19
commit 0e92d4ec0c
3 changed files with 19 additions and 5 deletions

View File

@@ -1,9 +1,17 @@
5.4.6.1 Beta (not yet released)
5.4.7.1 Beta (not yet released)
============
5.4.7.0
=======
- log error fix
- workaround to support AviSynth portable (ffmpeg blocks loading AviSynth from path env var)
- attempt to fix not reproducible volume input issue
- attempt to fix exception caused by powershell being not available on Win 7
5.4.6.0

View File

@@ -233,6 +233,12 @@ namespace mpvnet
var error = sender as PSDataCollection<ErrorRecord>;
ConsoleHelp.WriteError(error[e.Index], Module);
}
public static void Shutdown()
{
foreach (PowerShell ps in Instances)
ps.Runspace.Dispose();
}
}
public class PowerShellException : Exception

View File

@@ -520,6 +520,9 @@ namespace mpvnet
case 0x319: // WM_APPCOMMAND
if (core.WindowHandle != IntPtr.Zero)
m.Result = WinAPI.SendMessage(core.WindowHandle, m.Msg, m.WParam, m.LParam);
if (m.Msg == 0x319) // WM_APPCOMMAND
return;
break;
case 0x0200: // WM_MOUSEMOVE
if (Environment.TickCount - LastCycleFullscreen > 500)
@@ -793,10 +796,7 @@ namespace mpvnet
if (!core.ShutdownAutoResetEvent.WaitOne(10000))
Msg.ShowError("Shutdown thread failed to complete within 10 seconds.");
try { // PowerShell 5.1 might not be available
foreach (PowerShell ps in PowerShell.Instances)
ps.Runspace.Dispose();
} catch {}
PowerShell.Shutdown();
}
protected override void OnMouseDown(MouseEventArgs e)