diff options
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>
|