From 1c8ab3b1dae40530681b14f3376f77a0eb06ff73 Mon Sep 17 00:00:00 2001 From: Vlad Jerca Date: Sun, 3 Mar 2019 01:16:42 +0200 Subject: [PATCH] HotFix: propagate ctor options in child classes --- FFMpegCore/FFMPEG/FFMpeg.cs | 10 ++-------- FFMpegCore/FFMPEG/FFProbe.cs | 2 +- FFMpegCore/FFMpegCore.csproj | 6 +++--- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/FFMpegCore/FFMPEG/FFMpeg.cs b/FFMpegCore/FFMPEG/FFMpeg.cs index f6b3111..b6660b0 100644 --- a/FFMpegCore/FFMPEG/FFMpeg.cs +++ b/FFMpegCore/FFMPEG/FFMpeg.cs @@ -25,18 +25,12 @@ public class FFMpeg : FFBase /// /// Intializes the FFMPEG encoder. /// - public FFMpeg() + public FFMpeg(FFMpegOptions opts = null): base(opts) { _Init(); ArgumentBuilder = new FFArgumentBuilder(); } - - public FFMpeg(IArgumentBuilder builder) - { - _Init(); - ArgumentBuilder = builder; - } - + private void _Init() { FFMpegHelper.RootExceptionCheck(ConfiguredRoot); diff --git a/FFMpegCore/FFMPEG/FFProbe.cs b/FFMpegCore/FFMPEG/FFProbe.cs index 06801f6..421f29d 100644 --- a/FFMpegCore/FFMPEG/FFProbe.cs +++ b/FFMpegCore/FFMPEG/FFProbe.cs @@ -8,7 +8,7 @@ namespace FFMpegCore.FFMPEG { public sealed class FFProbe : FFBase { - public FFProbe() + public FFProbe(FFMpegOptions opts = null): base(opts) { FFProbeHelper.RootExceptionCheck(ConfiguredRoot); diff --git a/FFMpegCore/FFMpegCore.csproj b/FFMpegCore/FFMpegCore.csproj index 608fc81..73a5ff2 100644 --- a/FFMpegCore/FFMpegCore.csproj +++ b/FFMpegCore/FFMpegCore.csproj @@ -7,9 +7,9 @@ https://github.com/vladjerca/FFMpegCore Vlad Jerca 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. - 1.0.3 - 1.0.3.0 - 1.0.3.0 + 1.0.4 + 1.0.4.0 + 1.0.4.0