mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 12:36:44 +00:00
Fix tags container null ref exception
This commit is contained in:
parent
6df9495e9f
commit
b31c8da7ae
3 changed files with 5 additions and 5 deletions
|
@ -87,7 +87,7 @@ public class FFProbeStream : ITagsContainer, IDispositionContainer
|
||||||
public Dictionary<string, int> Disposition { get; set; } = null!;
|
public Dictionary<string, int> Disposition { get; set; } = null!;
|
||||||
|
|
||||||
[JsonPropertyName("tags")]
|
[JsonPropertyName("tags")]
|
||||||
public Dictionary<string, string> Tags { get; set; } = null!;
|
public Dictionary<string, string>? Tags { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("side_data_list")]
|
[JsonPropertyName("side_data_list")]
|
||||||
public List<Dictionary<string, JsonValue>> SideData { get; set; } = null!;
|
public List<Dictionary<string, JsonValue>> SideData { get; set; } = null!;
|
||||||
|
@ -126,7 +126,7 @@ public class Format : ITagsContainer
|
||||||
public int ProbeScore { get; set; }
|
public int ProbeScore { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("tags")]
|
[JsonPropertyName("tags")]
|
||||||
public Dictionary<string, string> Tags { get; set; } = null!;
|
public Dictionary<string, string>? Tags { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IDispositionContainer
|
public interface IDispositionContainer
|
||||||
|
@ -136,7 +136,7 @@ public interface IDispositionContainer
|
||||||
|
|
||||||
public interface ITagsContainer
|
public interface ITagsContainer
|
||||||
{
|
{
|
||||||
Dictionary<string, string> Tags { get; set; }
|
Dictionary<string, string>? Tags { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class TagExtensions
|
public static class TagExtensions
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
namespace FFMpegCore
|
namespace FFMpegCore
|
||||||
{
|
{
|
||||||
public class MediaFormat
|
public class MediaFormat : ITagsContainer
|
||||||
{
|
{
|
||||||
public TimeSpan Duration { get; set; }
|
public TimeSpan Duration { get; set; }
|
||||||
public TimeSpan StartTime { get; set; }
|
public TimeSpan StartTime { get; set; }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace FFMpegCore
|
namespace FFMpegCore
|
||||||
{
|
{
|
||||||
public abstract class MediaStream
|
public abstract class MediaStream : ITagsContainer
|
||||||
{
|
{
|
||||||
public int Index { get; set; }
|
public int Index { get; set; }
|
||||||
public string CodecName { get; set; } = null!;
|
public string CodecName { get; set; } = null!;
|
||||||
|
|
Loading…
Reference in a new issue