OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 17 Sep 2008 15:17:12 +0000 (15:17 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 17 Sep 2008 15:17:12 +0000 (15:17 +0000)
- 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://localhost/HandBrake/trunk@1709 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Parsing/Title.cs

index 14eacf1..f819ab1 100644 (file)
@@ -186,6 +186,14 @@ namespace Handbrake.Parsing
             while ((char)sr.Peek() == '+')\r
             {\r
                 titles.Add(Title.Parse(sr));\r
+                /*\r
+                 * Fix for the line "+ combing detected, may be interlaced or telecined"\r
+                 * If the next character is not a [ or +, then there are titles left to parse, but we are not where\r
+                 * we expect to be in the output, so read one line ahead to skip over the unknown line\r
+                 */\r
+\r
+                if ((char)sr.Peek() != '[' && (char)sr.Peek() != '+' && (char)sr.Peek() != null) // Hack, Fix later\r
+                    sr.ReadLine();\r
             }\r
 \r
             return titles.ToArray();\r