summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-09-17 15:17:12 +0000
committersr55 <[email protected]>2008-09-17 15:17:12 +0000
commit0bf6104fb240884cdcfbc74f18edfef8f1d0ece4 (patch)
tree250f4434663e57945dbb2f498c64b12dc757593d
parent4ae241b8ecdc2b5613bb42982f0a60eaef447be3 (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.cs8
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();