summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-11-27 15:58:52 +0000
committersr55 <[email protected]>2010-11-27 15:58:52 +0000
commitaaecfe6931f6925746b39394e2fff42207c2cf6a (patch)
tree7f0d9aaed53ea5fe7badc4a259c609600b29bced
parente690cc2e9bdb79068a6a6e78c2a05a12b517cee1 (diff)
WinGui:
- Fix an issue with the auto naming where it would use the source file extension in the output filename. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3687 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/C#/Functions/Main.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs
index d061f67d8..18919fee8 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("_", " ");