diff options
author | sr55 <[email protected]> | 2013-10-08 20:02:41 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-10-08 20:02:41 +0000 |
commit | b1fc28838bdb40a9a7c8c77b960cc2c82262b1e8 (patch) | |
tree | aab769eaefe614b62938a77b1b000c2a7efa1de3 /win/CS/HandBrakeWPF | |
parent | b2d1486ba0c2bd29e88e9ed8358cadd447c5cbee (diff) |
WinGui: Handle libhb dll errors.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5825 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 33403b5b3..681a73ed6 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -1166,7 +1166,21 @@ namespace HandBrakeWPF.ViewModels width = 720;
}
- return HandBrakeUtils.CreateX264OptionsString(preset, tunes, this.ExtraArguments, profile, this.H264Level, width, height);
+ try
+ {
+ return HandBrakeUtils.CreateX264OptionsString(
+ preset,
+ tunes,
+ this.ExtraArguments,
+ profile,
+ this.H264Level,
+ width,
+ height);
+ }
+ catch (Exception)
+ {
+ return "Error: Libhb not loaded.";
+ }
}
/// <summary>
|