mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
Fix for subtitles
This commit is contained in:
parent
6936336b82
commit
af819a6c61
1 changed files with 2 additions and 0 deletions
|
@ -203,6 +203,8 @@ namespace MediaBrowser.Model.Dlna
|
||||||
playlistItem.AudioCodec = transcodingProfile.AudioCodec.Split(',').FirstOrDefault();
|
playlistItem.AudioCodec = transcodingProfile.AudioCodec.Split(',').FirstOrDefault();
|
||||||
playlistItem.VideoCodec = transcodingProfile.VideoCodec;
|
playlistItem.VideoCodec = transcodingProfile.VideoCodec;
|
||||||
playlistItem.Protocol = transcodingProfile.Protocol;
|
playlistItem.Protocol = transcodingProfile.Protocol;
|
||||||
|
playlistItem.AudioStreamIndex = options.AudioStreamIndex;
|
||||||
|
playlistItem.SubtitleStreamIndex = options.SubtitleStreamIndex;
|
||||||
|
|
||||||
var videoTranscodingConditions = options.Profile.CodecProfiles
|
var videoTranscodingConditions = options.Profile.CodecProfiles
|
||||||
.Where(i => i.Type == CodecType.Video && i.ContainsCodec(transcodingProfile.VideoCodec))
|
.Where(i => i.Type == CodecType.Video && i.ContainsCodec(transcodingProfile.VideoCodec))
|
||||||
|
|
Loading…
Reference in a new issue