summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 1c4ccb229..fa85b4763 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -56,7 +56,8 @@ namespace Handbrake
private string dvdDriveLabel;
private Preset currentlySelectedPreset;
private DVD currentSource;
- private IScan SourceScan = new ScanService();
+
+ private IScan SourceScan;
private List<DriveInformation> drives;
private QueueTask queueEdit;
@@ -118,6 +119,9 @@ namespace Handbrake
{
InitializeComponent();
+ // We can use LibHB, if the library hb.dll exists.
+ this.SourceScan = File.Exists("hb.dll") ? (IScan)new LibScan() : new ScanService();
+
// Update the users config file with the CLI version data.
Main.SetCliVersionData();