diff options
author | sr55 <[email protected]> | 2008-10-22 15:59:05 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-10-22 15:59:05 +0000 |
commit | 226447cbf8d4f5b5717af4756d263c0fa7bcaf90 (patch) | |
tree | 83384cb3ed4c7299ab880ad1c3d39d4634a053cc /win | |
parent | 0af636b436d378f8630321b88c9c543a2388b952 (diff) |
WinGui:
- Updated to read the new preset-list output format. Nested presets support code will come later.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1858 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/Functions/Presets.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/C#/Functions/Presets.cs b/win/C#/Functions/Presets.cs index 3faa8b8d6..20106727b 100644 --- a/win/C#/Functions/Presets.cs +++ b/win/C#/Functions/Presets.cs @@ -194,10 +194,10 @@ namespace Handbrake.Functions StreamReader presetInput = new StreamReader(filePath);
while (!presetInput.EndOfStream)
{
- if ((char)presetInput.Peek() == '+')
- presets.Add(presetInput.ReadLine().Replace("+ ", ""));
- else
- presetInput.ReadLine();
+ string line = presetInput.ReadLine();
+
+ if (line.Contains("+"))
+ presets.Add(line.Replace("+ ", "").Trim());
}
presetInput.Close();
presetInput.Dispose();
|