mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix build
This commit is contained in:
parent
c3752b1a30
commit
277e9d2b0b
@ -52,7 +52,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
.Where(i => i != null)
|
.Where(i => i != null)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
if (data.format != null)
|
if (data.Format != null)
|
||||||
{
|
{
|
||||||
info.Container = NormalizeFormat(data.Format.FormatName);
|
info.Container = NormalizeFormat(data.Format.FormatName);
|
||||||
|
|
||||||
@ -523,27 +523,27 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
/// <returns>MediaAttachments.</returns>
|
/// <returns>MediaAttachments.</returns>
|
||||||
private MediaAttachment GetMediaAttachment(MediaStreamInfo streamInfo)
|
private MediaAttachment GetMediaAttachment(MediaStreamInfo streamInfo)
|
||||||
{
|
{
|
||||||
if (!string.Equals(streamInfo.codec_type, "attachment", StringComparison.OrdinalIgnoreCase))
|
if (!string.Equals(streamInfo.CodecType, "attachment", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var attachment = new MediaAttachment
|
var attachment = new MediaAttachment
|
||||||
{
|
{
|
||||||
Codec = streamInfo.codec_name,
|
Codec = streamInfo.CodecName,
|
||||||
Index = streamInfo.index
|
Index = streamInfo.Index
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(streamInfo.codec_tag_string))
|
if (!string.IsNullOrWhiteSpace(streamInfo.CodecTagString))
|
||||||
{
|
{
|
||||||
attachment.CodecTag = streamInfo.codec_tag_string;
|
attachment.CodecTag = streamInfo.CodecTagString;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (streamInfo.tags != null)
|
if (streamInfo.Tags != null)
|
||||||
{
|
{
|
||||||
attachment.FileName = GetDictionaryValue(streamInfo.tags, "filename");
|
attachment.FileName = GetDictionaryValue(streamInfo.Tags, "filename");
|
||||||
attachment.MimeType = GetDictionaryValue(streamInfo.tags, "mimetype");
|
attachment.MimeType = GetDictionaryValue(streamInfo.Tags, "mimetype");
|
||||||
attachment.Comment = GetDictionaryValue(streamInfo.tags, "comment");
|
attachment.Comment = GetDictionaryValue(streamInfo.Tags, "comment");
|
||||||
}
|
}
|
||||||
|
|
||||||
return attachment;
|
return attachment;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user