summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/DVD.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-08-22 18:48:40 +0000
committersr55 <[email protected]>2007-08-22 18:48:40 +0000
commit5b79c836c803fe8b7706bf06485656f889478f7f (patch)
tree9da98d6aae57ef1d3f9281a1c7b51352030e3606 /win/C#/Parsing/DVD.cs
parent784d350cf62da4ee14042e573d42765db84ddf1f (diff)
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
Diffstat (limited to 'win/C#/Parsing/DVD.cs')
-rw-r--r--win/C#/Parsing/DVD.cs15
1 files changed, 11 insertions, 4 deletions
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
{
+
/// <summary>
/// An object representing a scanned DVD
/// </summary>
public class DVD
{
+
private List<Title> 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;