mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
config FFMpegOptions with delegate
This commit is contained in:
parent
1f7e663765
commit
2c63f93b59
1 changed files with 9 additions and 0 deletions
|
@ -12,8 +12,17 @@ public class FFMpegOptions
|
|||
|
||||
public static FFMpegOptions Options { get; private set; } = new FFMpegOptions();
|
||||
|
||||
public static void Configure(Action<FFMpegOptions> optionsAction)
|
||||
{
|
||||
optionsAction?.Invoke(Options);
|
||||
}
|
||||
|
||||
public static void Configure(FFMpegOptions options)
|
||||
{
|
||||
if (null == options)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(options));
|
||||
}
|
||||
Options = options;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue