summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/C#/Functions/Common.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs
index ebeb0c9c6..244eb142e 100644
--- a/win/C#/Functions/Common.cs
+++ b/win/C#/Functions/Common.cs
@@ -728,7 +728,7 @@ namespace Handbrake.Functions
if (mainWindow.Check_ChapterMarkers.Checked)
{
- if (source_name != "Click 'Browse' to continue")
+ if (source_name.Trim().Replace("-i ", "") != "Click \'Browse\' to continue")
{
if (source_title != "Automatic")
{
@@ -745,8 +745,16 @@ namespace Handbrake.Functions
}
else
{
- string path = Path.Combine(Path.GetTempPath(), "chapters.csv");
- ChapterMarkers = " --markers=" + "\"" + path + "\"";
+ string filename = source_name + "-chapters.csv";
+ string path = Path.Combine(Path.GetTempPath(), filename);
+
+ Boolean saveCSV = chapterCSVSave(mainWindow, path);
+ if (saveCSV == false)
+ ChapterMarkers = " -m ";
+ else
+ {
+ ChapterMarkers = " --markers=" + "\"" + path + "\"";
+ }
}
}
else