From 38584023de84c202a76999c88ac95be9ef9ea2b6 Mon Sep 17 00:00:00 2001 From: moisesmcardona Date: Wed, 13 Nov 2019 16:56:14 -0500 Subject: [PATCH] Will disable the use of pipes if mediainfo is not found. --- svt-av1_gui/Form1.Designer.vb | 2 +- svt-av1_gui/Form1.vb | 6 ++++-- svt-av1_gui/My Project/AssemblyInfo.vb | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/svt-av1_gui/Form1.Designer.vb b/svt-av1_gui/Form1.Designer.vb index ab26ef0..2f64713 100644 --- a/svt-av1_gui/Form1.Designer.vb +++ b/svt-av1_gui/Form1.Designer.vb @@ -160,7 +160,7 @@ Partial Class Form1 Me.Label6.Name = "Label6" Me.Label6.Size = New System.Drawing.Size(28, 13) Me.Label6.TabIndex = 12 - Me.Label6.Text = "v1.3" + Me.Label6.Text = "v1.4" ' 'GroupBox1 ' diff --git a/svt-av1_gui/Form1.vb b/svt-av1_gui/Form1.vb index 5ef8c0a..4fdcd6b 100644 --- a/svt-av1_gui/Form1.vb +++ b/svt-av1_gui/Form1.vb @@ -521,8 +521,10 @@ Public Class Form1 MediaInfoProcess = Process.Start(MediaInfoProcessInfo) MediaInfoProcess.WaitForExit() Catch ex As Exception - MessageBox.Show("SvtAv1EncApp.exe was not found. Exiting...") - Me.Close() + NoPipes.Checked = True + NoPipes.Enabled = False + My.Settings.NoPipes = True + My.Settings.Save() End Try End Sub diff --git a/svt-av1_gui/My Project/AssemblyInfo.vb b/svt-av1_gui/My Project/AssemblyInfo.vb index d1cf892..a7a083b 100644 --- a/svt-av1_gui/My Project/AssemblyInfo.vb +++ b/svt-av1_gui/My Project/AssemblyInfo.vb @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + +