diff options
author | sr55 <[email protected]> | 2007-08-25 20:34:42 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-08-25 20:34:42 +0000 |
commit | 370ca4bd5162411684a524fdceba9a6967b8c64e (patch) | |
tree | f13b0f85e60be2a958318472f37f03c8dcef85dd /win/C#/Parsing/DVD.cs | |
parent | 2548077aee301044b45aca605f6949fec78903a9 (diff) |
WinGui:
- PSP Preset Fix
- Cleaned up Exception handling a bit.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@866 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing/DVD.cs')
-rw-r--r-- | win/C#/Parsing/DVD.cs | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/win/C#/Parsing/DVD.cs b/win/C#/Parsing/DVD.cs index d2d211538..62a40d81b 100644 --- a/win/C#/Parsing/DVD.cs +++ b/win/C#/Parsing/DVD.cs @@ -42,18 +42,24 @@ namespace Handbrake.Parsing public static DVD Parse(StreamReader output)
{
DVD thisDVD = new DVD();
- while (!output.EndOfStream)
+ try
{
- if ((char)output.Peek() == '+')
+ while (!output.EndOfStream)
{
- string testb = output.ReadToEnd();
- thisDVD.m_titles.AddRange(Title.ParseList(testb));
- }
- else
- {
- output.ReadLine();
+ if ((char)output.Peek() == '+')
+ {
+ thisDVD.m_titles.AddRange(Title.ParseList(output.ReadToEnd()));
+ }
+ else
+ {
+ output.ReadLine();
+ }
}
}
+ catch (Exception exc)
+ {
+ MessageBox.Show("DVD.CS - Parse" + exc.ToString());
+ }
return thisDVD;
}
}
|