FFMpegCore/FFMpegCore/FFMPEG/Argument/Atoms/DurationArgument.cs
Malte Rosenbjerg 0e2c788796 Remove ArgumentStringifier + cleanup
No reason to split the responsibility
2020-02-27 20:16:17 +01:00

20 lines
470 B
C#

using System;
namespace FFMpegCore.FFMPEG.Argument
{
/// <summary>
/// Represents duration parameter
/// </summary>
public class DurationArgument : Argument<TimeSpan?>
{
public DurationArgument() { }
public DurationArgument(TimeSpan? value) : base(value) { }
/// <inheritdoc/>
public override string GetStringValue()
{
return !Value.HasValue ? string.Empty : $"-t {Value}";
}
}
}