Match audioSampleRates = Regex.Match(input, @"-R ([0-9a-zA-Z.,]*)"); // Auto = a-z\r
Match drcValues = Regex.Match(input, @"-D ([0-9.,]*)");\r
Match gainValues = Regex.Match(input, @"--gain=([0-9.,-]*)");\r
- Match fallbackEncoder = Regex.Match(input, @"--audio-fallback([a-zA-Z0-9:=\s]*)");\r
- Match allowedPassthru = Regex.Match(input, @"--audio-copy-mask([a-zA-Z0-9:,=\s]*)");\r
+ Match fallbackEncoder = Regex.Match(input, @"--audio-fallback([a-zA-Z0-9:=\s ]*)");\r
+ Match allowedPassthru = Regex.Match(input, @"--audio-copy-mask([a-zA-Z0-9:,=\s ]*)");\r
\r
// Chapters Tab\r
Match chapterMarkers = Regex.Match(input, @" -m");\r
/// </param>\r
private void pmnu_saveChanges_Click(object sender, EventArgs e)\r
{\r
+ if (this.selectedTitle == null)\r
+ {\r
+ MessageBox.Show(\r
+ "Please scan a source before trying to update a preset.",\r
+ "Error",\r
+ MessageBoxButtons.OK,\r
+ MessageBoxIcon.Error);\r
+ return;\r
+ }\r
+\r
DialogResult result =\r
MessageBox.Show(\r
"Do you wish to include picture settings when updating the preset: " +\r
Query = query, \r
CropSettings = (result == DialogResult.Yes),\r
AudioPassthruSettings = this.AudioSettings.PassthruSettings,\r
- Task = QueryParserUtility.Parse(query),\r
+ Task = QueryParserUtility.Parse(query), \r
};\r
\r
presetHandler.Update(preset);\r