From bc71b6b390ad9becc6179311b61f32fd16860f5f Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 27 Nov 2010 15:58:52 +0000 Subject: [PATCH] WinGui: - Fix an issue with the auto naming where it would use the source file extension in the output filename. git-svn-id: svn://localhost/HandBrake/trunk@3687 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/Main.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index d061f67d..18919fee 100644 --- a/win/C#/Functions/Main.cs +++ b/win/C#/Functions/Main.cs @@ -204,7 +204,8 @@ namespace Handbrake.Functions if (mainWindow.drp_dvdtitle.Text != "Automatic") { // Get the Source Name and remove any invalid characters - string sourceName = Path.GetInvalidFileNameChars().Aggregate(mainWindow.SourceName, (current, character) => current.Replace(character.ToString(), string.Empty)); + + string sourceName = Path.GetInvalidFileNameChars().Aggregate(Path.GetFileNameWithoutExtension(mainWindow.SourceName), (current, character) => current.Replace(character.ToString(), string.Empty)); if (Properties.Settings.Default.AutoNameRemoveUnderscore) sourceName = sourceName.Replace("_", " "); -- 2.11.0