mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-05 09:52:10 +01:00
rework shutdown
This commit is contained in:
@@ -130,13 +130,18 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
var stream = new MediaStream
|
||||
{
|
||||
Codec = streamInfo.codec_name,
|
||||
CodecTag = streamInfo.codec_tag_string,
|
||||
Profile = streamInfo.profile,
|
||||
Level = streamInfo.level,
|
||||
Index = streamInfo.index,
|
||||
PixelFormat = streamInfo.pix_fmt
|
||||
};
|
||||
|
||||
// Filter out junk
|
||||
if (!string.IsNullOrWhiteSpace(streamInfo.codec_tag_string) && streamInfo.codec_tag_string.IndexOf("[0]", StringComparison.OrdinalIgnoreCase) == -1)
|
||||
{
|
||||
stream.CodecTag = streamInfo.codec_tag_string;
|
||||
}
|
||||
|
||||
if (streamInfo.tags != null)
|
||||
{
|
||||
stream.Language = GetDictionaryValue(streamInfo.tags, "language");
|
||||
|
||||
Reference in New Issue
Block a user