summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-12-06 17:37:19 +0000
committersr55 <[email protected]>2009-12-06 17:37:19 +0000
commit15a7917a9e4bc850560174040dcfc06c2c611020 (patch)
tree6588e2e618bde8898cdf69e2913a3c8fd6ded90d /win/C#/frmMain.cs
parent528b95af2235d0f9c4b70d02071831d3796c994c (diff)
WinGui:
- Make SourceName a bit smarter when dealing with autonaming and folders. If Video_TS folder is the selected source, autoname will now use the upper level folder name instead. (thanks slaingod) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3009 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index cdd062bb5..c6fb58e60 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -192,8 +192,11 @@ namespace Handbrake
{
return this.dvdDriveLabel;
}
+
+ if(Path.GetFileNameWithoutExtension(this.sourcePath) != "VIDEO_TS")
+ return Path.GetFileNameWithoutExtension(this.sourcePath);
- return Path.GetFileNameWithoutExtension(this.sourcePath);
+ return Path.GetFileNameWithoutExtension(Path.GetDirectoryName(this.sourcePath));
}
}
#endregion