lbl_status.Visible = true;\r
try\r
{\r
- QTControl.URL = "";\r
+ if (!noQT)\r
+ QTControl.URL = "";\r
+\r
if (File.Exists(currently_playing))\r
File.Delete(currently_playing);\r
}\r
{\r
if (File.Exists(currently_playing))\r
{\r
+ // Attempt to find VLC if it doesn't exist in the default set location.\r
+ if (!File.Exists(Properties.Settings.Default.VLC_Path))\r
+ {\r
+ if (File.Exists("C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe"))\r
+ {\r
+ Properties.Settings.Default.VLC_Path = "C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe";\r
+ Properties.Settings.Default.Save(); // Save this new path if it does\r
+ }\r
+ else\r
+ {\r
+ MessageBox.Show(this,\r
+ "Unable to detect VLC Player. \nPlease make sure VLC is installed and the directory specified in HandBrake's options is correct. (See: \"Tools Menu > Options > Picture Tab\") ",\r
+ "VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ }\r
+ }\r
+\r
if (File.Exists(Properties.Settings.Default.VLC_Path))\r
{\r
String args = "\"" + currently_playing + "\"";\r
Process.Start(vlc);\r
lbl_status.Text = "VLC will now launch.";\r
}\r
- else\r
- MessageBox.Show(this, "Unable to detect VLC Player. \nPlease make sure VLC is installed and the directory specified in HandBrake's options is correct. (See: \"Tools Menu > Options > Picture Tab\") ", "VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ \r
}\r
else\r
MessageBox.Show(this, "Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details.", "VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r