diff options
Diffstat (limited to 'win/C#/Functions/Presets.cs')
-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();
|