OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 14 Nov 2009 18:44:12 +0000 (18:44 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 14 Nov 2009 18:44:12 +0000 (18:44 +0000)
- Fixed: Chapter Markers were being disabled for VIDEO_TS directories when the folder above the VIDEO_TS folder was being used as the source path.

git-svn-id: svn://localhost/HandBrake/trunk@2930 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/frmMain.cs

index 93c8899..9cf29a2 100644 (file)
@@ -1514,6 +1514,8 @@ namespace Handbrake
                 // Enable the creation of chapter markers if the file is an image of a dvd.\r
                 if (sourcePath.ToLower().Contains(".iso") || sourcePath.Contains("VIDEO_TS"))\r
                     Check_ChapterMarkers.Enabled = true;\r
+                else if (Directory.Exists(Path.Combine(sourcePath, "VIDEO_TS")))\r
+                    Check_ChapterMarkers.Enabled = true;\r
                 else\r
                 {\r
                     Check_ChapterMarkers.Enabled = false;\r