+ if (text_destination.Text.EndsWith(".mp4"))\r
+ DVD_Save.FilterIndex = 1;\r
+ else if (text_destination.Text.EndsWith(".m4v"))\r
+ DVD_Save.FilterIndex = 2;\r
+ else if (text_destination.Text.EndsWith(".avi"))\r
+ DVD_Save.FilterIndex = 3;\r
+ else if (text_destination.Text.EndsWith(".ogm"))\r
+ DVD_Save.FilterIndex = 4;\r
+ else if (text_destination.Text.EndsWith(".mkv"))\r
+ DVD_Save.FilterIndex = 5;\r
+\r
+ if (DVD_Save.ShowDialog() == DialogResult.OK)\r
+ {\r
+ if (DVD_Save.FileName.StartsWith("\\"))\r
+ MessageBox.Show("Sorry, HandBrake does not support UNC file paths. \nTry mounting the share as a network drive in My Computer", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+ else\r
+ {\r
+ setAudioByContainer(DVD_Save.FileName);\r
+ text_destination.Text = DVD_Save.FileName;\r