HotFix: propagate ctor options in child classes

This commit is contained in:
Vlad Jerca 2019-03-03 01:16:42 +02:00
parent 0e95615261
commit 1c8ab3b1da
3 changed files with 6 additions and 12 deletions

View file

@ -25,18 +25,12 @@ public class FFMpeg : FFBase
/// <summary> /// <summary>
/// Intializes the FFMPEG encoder. /// Intializes the FFMPEG encoder.
/// </summary> /// </summary>
public FFMpeg() public FFMpeg(FFMpegOptions opts = null): base(opts)
{ {
_Init(); _Init();
ArgumentBuilder = new FFArgumentBuilder(); ArgumentBuilder = new FFArgumentBuilder();
} }
public FFMpeg(IArgumentBuilder builder)
{
_Init();
ArgumentBuilder = builder;
}
private void _Init() private void _Init()
{ {
FFMpegHelper.RootExceptionCheck(ConfiguredRoot); FFMpegHelper.RootExceptionCheck(ConfiguredRoot);

View file

@ -8,7 +8,7 @@ namespace FFMpegCore.FFMPEG
{ {
public sealed class FFProbe : FFBase public sealed class FFProbe : FFBase
{ {
public FFProbe() public FFProbe(FFMpegOptions opts = null): base(opts)
{ {
FFProbeHelper.RootExceptionCheck(ConfiguredRoot); FFProbeHelper.RootExceptionCheck(ConfiguredRoot);

View file

@ -7,9 +7,9 @@
<PackageProjectUrl>https://github.com/vladjerca/FFMpegCore</PackageProjectUrl> <PackageProjectUrl>https://github.com/vladjerca/FFMpegCore</PackageProjectUrl>
<Copyright>Vlad Jerca</Copyright> <Copyright>Vlad Jerca</Copyright>
<Description>A great way to use FFMpeg encoding when writing video applications, client-side and server-side. It has wrapper methods that allow conversion to all web formats: MP4, OGV, TS and methods of capturing screens from the videos.</Description> <Description>A great way to use FFMpeg encoding when writing video applications, client-side and server-side. It has wrapper methods that allow conversion to all web formats: MP4, OGV, TS and methods of capturing screens from the videos.</Description>
<Version>1.0.3</Version> <Version>1.0.4</Version>
<AssemblyVersion>1.0.3.0</AssemblyVersion> <AssemblyVersion>1.0.4.0</AssemblyVersion>
<FileVersion>1.0.3.0</FileVersion> <FileVersion>1.0.4.0</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>