diff options
author | sr55 <[email protected]> | 2008-09-17 15:17:12 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-09-17 15:17:12 +0000 |
commit | 0bf6104fb240884cdcfbc74f18edfef8f1d0ece4 (patch) | |
tree | 250f4434663e57945dbb2f498c64b12dc757593d | |
parent | 4ae241b8ecdc2b5613bb42982f0a60eaef447be3 (diff) |
WinGui:
- Possible fix in the Query Parser for the line "+ combing detected, may be interlaced or telecined" causing the parser to skip titles.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1709 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Parsing/Title.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs index 14eacf165..f819ab1b3 100644 --- a/win/C#/Parsing/Title.cs +++ b/win/C#/Parsing/Title.cs @@ -186,6 +186,14 @@ namespace Handbrake.Parsing while ((char)sr.Peek() == '+')
{
titles.Add(Title.Parse(sr));
+ /*
+ * Fix for the line "+ combing detected, may be interlaced or telecined"
+ * If the next character is not a [ or +, then there are titles left to parse, but we are not where
+ * we expect to be in the output, so read one line ahead to skip over the unknown line
+ */
+
+ if ((char)sr.Peek() != '[' && (char)sr.Peek() != '+' && (char)sr.Peek() != null) // Hack, Fix later
+ sr.ReadLine();
}
return titles.ToArray();
|