diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/frmMain.cs | 5 |
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
|