diff options
author | sr55 <[email protected]> | 2007-07-16 16:52:58 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-16 16:52:58 +0000 |
commit | 2595cd0693e666366e824fdbbfe45adade38a08e (patch) | |
tree | 44c61ec26d8a22cfc7ecfd1cf9724c22518ba696 /win/C#/Parsing/Chapter.cs | |
parent | 5e8776b2f2e87120efaae2ed509bce845c5de94c (diff) |
WinGui:
- CLI process handling code moved into its own class. Reduces code replication. Returns hbProc
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@696 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing/Chapter.cs')
-rw-r--r-- | win/C#/Parsing/Chapter.cs | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/win/C#/Parsing/Chapter.cs b/win/C#/Parsing/Chapter.cs index 44627ac63..c74f0d56e 100644 --- a/win/C#/Parsing/Chapter.cs +++ b/win/C#/Parsing/Chapter.cs @@ -16,24 +16,6 @@ namespace Handbrake.Parsing }
}
- /*private int[] m_cellRange;
- public int[] CellRange
- {
- get
- {
- return this.m_cellRange;
- }
- }
-
- private int m_blocks;
- public int BlockCount
- {
- get
- {
- return this.m_blocks;
- }
- }*/
-
private TimeSpan m_duration;
public TimeSpan Duration
{
@@ -56,8 +38,6 @@ namespace Handbrake.Parsing Chapter thisChapter = new Chapter();
string[] splitter = curLine.Split(new string[] { " + ", ": cells ", ", ", " blocks, duration ", "->" }, StringSplitOptions.RemoveEmptyEntries);
thisChapter.m_chapterNumber = int.Parse(splitter[0]);
- //thisChapter.m_cellRange = new int[2] { int.Parse(splitter[1]), int.Parse(splitter[2]) };
- //thisChapter.m_blocks = int.Parse(splitter[3]);
thisChapter.m_duration = TimeSpan.Parse(splitter[4]);
return thisChapter;
}
@@ -74,6 +54,7 @@ namespace Handbrake.Parsing while (!curLine.Contains(" + audio tracks:"))
{
Chapter thisChapter = Chapter.Parse(output);
+
if (thisChapter != null)
{
chapters.Add(thisChapter);
|