summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-10-22 15:59:05 +0000
committersr55 <[email protected]>2008-10-22 15:59:05 +0000
commit226447cbf8d4f5b5717af4756d263c0fa7bcaf90 (patch)
tree83384cb3ed4c7299ab880ad1c3d39d4634a053cc /win/C#
parent0af636b436d378f8630321b88c9c543a2388b952 (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/C#')
-rw-r--r--win/C#/Functions/Presets.cs8
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();