summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/DVD.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-08-27 23:45:44 +0000
committersr55 <[email protected]>2008-08-27 23:45:44 +0000
commitc1f31822b78859305328750ca0adcd0b1699f690 (patch)
tree9751e09ecee8a9199e5f49ae0af351f71a8be794 /win/C#/Parsing/DVD.cs
parent1833f566d3f9c7fbe0ef61b4f9304b6e0f7fddb5 (diff)
WinGui:
- Code Refactoring and optimization to numerous files git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing/DVD.cs')
-rw-r--r--win/C#/Parsing/DVD.cs21
1 files changed, 8 insertions, 13 deletions
diff --git a/win/C#/Parsing/DVD.cs b/win/C#/Parsing/DVD.cs
index 1637c9154..d0802e4c9 100644
--- a/win/C#/Parsing/DVD.cs
+++ b/win/C#/Parsing/DVD.cs
@@ -11,7 +11,7 @@ using System.IO;
namespace Handbrake.Parsing
{
-
+
/// <summary>
/// An object representing a scanned DVD
/// </summary>
@@ -41,20 +41,15 @@ namespace Handbrake.Parsing
public static DVD Parse(StreamReader output)
{
DVD thisDVD = new DVD();
- try
- {
- while (!output.EndOfStream)
- {
- if ((char)output.Peek() == '+')
- thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd()));
- else
- output.ReadLine();
- }
- }
- catch (Exception exc)
+
+ while (!output.EndOfStream)
{
- MessageBox.Show("DVD.CS - Parse" + exc.ToString());
+ if ((char)output.Peek() == '+')
+ thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd()));
+ else
+ output.ReadLine();
}
+
return thisDVD;
}
}