From 7fdd990dbd235b9daab5845926013b75c6420697 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 18 Oct 2014 19:09:54 +0000 Subject: WinGui: Fix srt burn in option. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6450 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs index d78731ce0..f883256e3 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs @@ -799,6 +799,7 @@ namespace HandBrake.ApplicationServices.Utilities string srtOffset = String.Empty; string srtLang = String.Empty; string srtDefault = String.Empty; + int? srtBurnTrack = null; int srtCount = 0; int subCount = 0; @@ -824,6 +825,8 @@ namespace HandBrake.ApplicationServices.Utilities itemToAdd = item.SrtOffset.ToString(); srtOffset += srtOffset == string.Empty ? itemToAdd : "," + itemToAdd; + if (item.Burned) + srtBurnTrack = srtCount; } else // We have Bitmap or CC { @@ -879,6 +882,8 @@ namespace HandBrake.ApplicationServices.Utilities query += " --srt-lang " + srtLang; if (srtDefault != string.Empty) query += " --srt-default=" + srtDefault; + if (srtBurnTrack.HasValue) + query += " --srt-burn=" + srtBurnTrack.Value; } } -- cgit v1.2.3