diff options
author | brianmario <[email protected]> | 2007-07-19 05:13:50 +0000 |
---|---|---|
committer | brianmario <[email protected]> | 2007-07-19 05:13:50 +0000 |
commit | e4adf35f39f2108514495b1e8be3f49b98edb6b9 (patch) | |
tree | 099709921187c04703c22d2ca30a986a38fd5227 /win/C#/frmReadDVD.cs | |
parent | 5a4f0a4e0089f3418df1e09eace439703bad9bb8 (diff) |
WinGui:
updated parsing code events to not be static anymore
added encode parsing to catch encode progress
added OnEncodeProgress event
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@717 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmReadDVD.cs')
-rw-r--r-- | win/C#/frmReadDVD.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index f969f9789..231064f66 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -27,7 +27,6 @@ namespace Handbrake this.inputFile = inputFile;
this.mainWindow = parent;
this.dvdInfo = dvdInfoWindow;
- Parsing.Parser.OnScanProgress += Parser_OnScanProgress;
}
private void btn_ok_Click(object sender, EventArgs e)
@@ -65,6 +64,9 @@ namespace Handbrake hbProc = process.runCli(this, query, true, true, false, true);
Parsing.Parser readData = new Parsing.Parser(hbProc.StandardError.BaseStream);
+ readData.OnScanProgress += Parser_OnScanProgress;
+ readData.OnReadLine += dvdInfo.HandleParsedData;
+ readData.OnReadToEnd += dvdInfo.HandleParsedData;
hbProc.Close();
// Setup the parser
|