diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-10-04 06:26:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-04 06:26:36 -0600 |
| commit | 02277b666b26beb9cb132a60751dea9c89895d09 (patch) | |
| tree | 62c3c4b18f3eae750df5a8a5d3de640ed2e1edb2 /MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | |
| parent | 9589194a94b5d6326460f9d267581044a69bcf87 (diff) | |
| parent | 0a1563455063abbd4560438b203b0e2b0e8a4430 (diff) | |
Merge pull request #8483 from crobibero/fix-data-stream
Added handling of streams of type "data"
Diffstat (limited to 'MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs index 6cae7f558..b33b45ab2 100644 --- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs +++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs @@ -875,8 +875,13 @@ namespace MediaBrowser.MediaEncoding.Probing } } } + else if (string.Equals(streamInfo.CodecType, "data", StringComparison.OrdinalIgnoreCase)) + { + stream.Type = MediaStreamType.Data; + } else { + _logger.LogError("Codec Type {CodecType} unknown. The stream (index: {Index}) will be ignored. Warning: Subsequential streams will have a wrong stream specifier!", streamInfo.CodecType, streamInfo.Index); return null; } |
