From 0bf6104fb240884cdcfbc74f18edfef8f1d0ece4 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 17 Sep 2008 15:17:12 +0000 Subject: 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 --- win/C#/Parsing/Title.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'win') 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(); -- cgit v1.2.3