summaryrefslogtreecommitdiffstats
path: root/win/C#/frmDvdInfo.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-07-31 18:31:06 +0000
committersr55 <[email protected]>2007-07-31 18:31:06 +0000
commite4fa3517465a1a7018c825b77e6a9a578c69f6c2 (patch)
tree620ab9aeae1faa921cd9442c693558ccfd94ce0f /win/C#/frmDvdInfo.cs
parent6c47d7e338ac4de8f826338783fab2f983646d76 (diff)
WinGui:
- Few queue bugs fixed. - Active queueing now works properly. Items can be added on the fly. DVD's can be scanned on the fly while the there is an encode process already going etc. - Fixed a potential unhandled exception in the DVD information window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@770 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmDvdInfo.cs')
-rw-r--r--win/C#/frmDvdInfo.cs27
1 files changed, 17 insertions, 10 deletions
diff --git a/win/C#/frmDvdInfo.cs b/win/C#/frmDvdInfo.cs
index 7f503227d..3b2cfd87d 100644
--- a/win/C#/frmDvdInfo.cs
+++ b/win/C#/frmDvdInfo.cs
@@ -20,18 +20,25 @@ namespace Handbrake
InitializeComponent();
this.rtf_dvdInfo.Text = string.Empty;
- string appPath = Application.StartupPath.ToString();
- appPath = appPath + "\\";
- StreamReader sr = new StreamReader(appPath + "dvdinfo.dat");
-
- string line = sr.ReadLine();
-
- while (line != null)
+ try
{
- this.rtf_dvdInfo.AppendText(line + System.Environment.NewLine);
- line = sr.ReadLine();
+ string appPath = Application.StartupPath.ToString();
+ appPath = appPath + "\\";
+ StreamReader sr = new StreamReader(appPath + "dvdinfo.dat");
+
+ string line = sr.ReadLine();
+
+ while (line != null)
+ {
+ this.rtf_dvdInfo.AppendText(line + System.Environment.NewLine);
+ line = sr.ReadLine();
+ }
+ sr.Close();
+ }
+ catch (Exception)
+ {
+ // Don't do anything
}
- sr.Close();
}
/*public void HandleParsedData(object Sender, string Data)