diff options
author | sr55 <[email protected]> | 2009-12-28 19:47:34 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-12-28 19:47:34 +0000 |
commit | 15678a6a29c5a4fdd8e9c644fa3727060bfb07de (patch) | |
tree | 853f703027cc51403be2b7aafb59c6a4df03e3a6 /win/C#/Functions/Scan.cs | |
parent | 07ddcfd523083066e7058049ed1017b2cb0ba60b (diff) |
WinGui:
- Improve VLC detection for the preview window.
- Put in the infrastructure for the new Frame / Duration(Seconds) feature
- Some Re-factoring
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3050 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Scan.cs')
-rw-r--r-- | win/C#/Functions/Scan.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win/C#/Functions/Scan.cs b/win/C#/Functions/Scan.cs index aca3399f3..1aadf0afd 100644 --- a/win/C#/Functions/Scan.cs +++ b/win/C#/Functions/Scan.cs @@ -23,10 +23,10 @@ namespace Handbrake.Functions public event EventHandler ScanCompleted;
public event EventHandler ScanStatusChanged;
- public void ScanSource(string sourcePath)
+ public void ScanSource(string sourcePath, int title)
{
- Thread t = new Thread(new ParameterizedThreadStart(RunScan));
- t.Start(sourcePath);
+ Thread t = new Thread(unused => RunScan(sourcePath, title));
+ t.Start();
}
public DVD SouceData()
@@ -49,7 +49,7 @@ namespace Handbrake.Functions return _hbProc;
}
- private void RunScan(object sourcePath)
+ private void RunScan(object sourcePath, int title)
{
try
{
@@ -73,7 +73,7 @@ namespace Handbrake.Functions StartInfo =
{
FileName = handbrakeCLIPath,
- Arguments = String.Format(@" -i ""{0}"" -t0 {1} -v ", sourcePath, dvdnav),
+ Arguments = String.Format(@" -i ""{0}"" -t{1} {2} -v ", sourcePath, title, dvdnav),
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false,
|