// Add the appropriate file extension\r
if (mainWindow.drop_format.SelectedIndex == 0)\r
{\r
- destinationFilename += Properties.Settings.Default.useM4v == 0 || Properties.Settings.Default.useM4v == 2 || mainWindow.Check_ChapterMarkers.Checked ||\r
+ switch (Properties.Settings.Default.useM4v)\r
+ {\r
+ case 0: // Automatic\r
+ destinationFilename += mainWindow.Check_ChapterMarkers.Checked ||\r
mainWindow.AudioSettings.RequiresM4V() || mainWindow.Subtitles.RequiresM4V()\r
? ".m4v"\r
: ".mp4";\r
+ break;\r
+ case 1: // Always MP4\r
+ destinationFilename += ".mp4";\r
+ break;\r
+ case 2: // Always M4V\r
+ destinationFilename += ".m4v";\r
+ break;\r
+ } \r
}\r
else if (mainWindow.drop_format.SelectedIndex == 1)\r
destinationFilename += ".mkv";\r
{\r
// Use the path and change the file extension to match the previous destination\r
autoNamePath = Path.Combine(Path.GetDirectoryName(mainWindow.text_destination.Text), destinationFilename);\r
-\r
- if (Path.HasExtension(mainWindow.text_destination.Text))\r
- autoNamePath = Path.ChangeExtension(autoNamePath,\r
- Path.GetExtension(mainWindow.text_destination.Text));\r
}\r
}\r
\r