From 5b79c836c803fe8b7706bf06485656f889478f7f Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 22 Aug 2007 18:48:40 +0000 Subject: WinGui: - Added some more exception handling. - Added workaround for issue with scanning on French systems causing a crash. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@850 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Parsing/DVD.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'win/C#/Parsing/DVD.cs') diff --git a/win/C#/Parsing/DVD.cs b/win/C#/Parsing/DVD.cs index 3ba212022..3249a23aa 100644 --- a/win/C#/Parsing/DVD.cs +++ b/win/C#/Parsing/DVD.cs @@ -1,17 +1,23 @@ using System; using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; using System.Text; -using System.IO; -using System.Text.RegularExpressions; using System.Windows.Forms; +using System.IO; +using System.Threading; +using System.Diagnostics; namespace Handbrake.Parsing { + /// /// An object representing a scanned DVD /// public class DVD { + private List m_titles; /// <summary> /// Collection of Titles associated with this DVD @@ -39,11 +45,12 @@ namespace Handbrake.Parsing { if ((char)output.Peek() == '+') { - thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd())); + string testb = output.ReadToEnd(); + thisDVD.m_titles.AddRange(Title.ParseList(testb)); } else { - output.ReadLine(); + string test = output.ReadLine(); } } return thisDVD; -- cgit v1.2.3