Skip to content

Commit 1c8ab3b

Browse files
committed
HotFix: propagate ctor options in child classes
1 parent 0e95615 commit 1c8ab3b

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

FFMpegCore/FFMPEG/FFMpeg.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,12 @@ public class FFMpeg : FFBase
2525
/// <summary>
2626
/// Intializes the FFMPEG encoder.
2727
/// </summary>
28-
public FFMpeg()
28+
public FFMpeg(FFMpegOptions opts = null): base(opts)
2929
{
3030
_Init();
3131
ArgumentBuilder = new FFArgumentBuilder();
3232
}
33-
34-
public FFMpeg(IArgumentBuilder builder)
35-
{
36-
_Init();
37-
ArgumentBuilder = builder;
38-
}
39-
33+
4034
private void _Init()
4135
{
4236
FFMpegHelper.RootExceptionCheck(ConfiguredRoot);

FFMpegCore/FFMPEG/FFProbe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace FFMpegCore.FFMPEG
88
{
99
public sealed class FFProbe : FFBase
1010
{
11-
public FFProbe()
11+
public FFProbe(FFMpegOptions opts = null): base(opts)
1212
{
1313
FFProbeHelper.RootExceptionCheck(ConfiguredRoot);
1414

FFMpegCore/FFMpegCore.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<PackageProjectUrl>https://github.com/vladjerca/FFMpegCore</PackageProjectUrl>
88
<Copyright>Vlad Jerca</Copyright>
99
<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>
10-
<Version>1.0.3</Version>
11-
<AssemblyVersion>1.0.3.0</AssemblyVersion>
12-
<FileVersion>1.0.3.0</FileVersion>
10+
<Version>1.0.4</Version>
11+
<AssemblyVersion>1.0.4.0</AssemblyVersion>
12+
<FileVersion>1.0.4.0</FileVersion>
1313
</PropertyGroup>
1414

1515
<ItemGroup>

0 commit comments

Comments
 (0)