aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkus <lomion@aon.at>2022-10-01 08:53:54 -0600
committerCody Robibero <cody@robibe.ro>2022-10-01 08:53:54 -0600
commit0a1563455063abbd4560438b203b0e2b0e8a4430 (patch)
treea4f53a2c12bb7deeb094cabf0901a6d1768b3a5e
parent55b0ebbbf300421479d2c0dcf6be45e667a8ac9e (diff)
Streams with CodecType "data" (like "epg" streams in DVB
recordings) get ignored. This results in wrong stream specifiers for all subsequent streams. This fix correctly handles "data" streams without any further processing.
-rw-r--r--MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs5
-rw-r--r--MediaBrowser.Model/Entities/MediaStreamType.cs7
2 files changed, 11 insertions, 1 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;
}
diff --git a/MediaBrowser.Model/Entities/MediaStreamType.cs b/MediaBrowser.Model/Entities/MediaStreamType.cs
index e09aaf6d0..83751a6a7 100644
--- a/MediaBrowser.Model/Entities/MediaStreamType.cs
+++ b/MediaBrowser.Model/Entities/MediaStreamType.cs
@@ -23,6 +23,11 @@ namespace MediaBrowser.Model.Entities
/// <summary>
/// The embedded image.
/// </summary>
- EmbeddedImage
+ EmbeddedImage,
+
+ /// <summary>
+ /// The data.
+ /// </summary>
+ Data
}
}