diff options
author | sr55 <[email protected]> | 2014-10-18 19:09:54 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-10-18 19:09:54 +0000 |
commit | 7fdd990dbd235b9daab5845926013b75c6420697 (patch) | |
tree | dcdab83cbf6805a7e23b4dcfbfd74a2b1d9cb262 | |
parent | 8db48896a1e17143cbca3250b8a3e60245d0a197 (diff) |
WinGui: Fix srt burn in option.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6450 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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;
}
}
|