mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-27 01:50:53 +01:00
Merge pull request #6920 from marius-luca-87/subtitle_drop
This commit is contained in:
@@ -1221,7 +1221,9 @@ namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
var subtitleProfile = GetSubtitleProfile(item, subtitleStream, options.Profile.SubtitleProfiles, playMethod, _transcoderSupport, item.Container, null);
|
||||
|
||||
if (subtitleProfile.Method != SubtitleDeliveryMethod.External && subtitleProfile.Method != SubtitleDeliveryMethod.Embed)
|
||||
if (subtitleProfile.Method != SubtitleDeliveryMethod.Drop
|
||||
&& subtitleProfile.Method != SubtitleDeliveryMethod.External
|
||||
&& subtitleProfile.Method != SubtitleDeliveryMethod.Embed)
|
||||
{
|
||||
_logger.LogDebug("Not eligible for {0} due to unsupported subtitles", playMethod);
|
||||
return (false, TranscodeReason.SubtitleCodecNotSupported);
|
||||
|
||||
@@ -25,6 +25,11 @@ namespace MediaBrowser.Model.Dlna
|
||||
/// <summary>
|
||||
/// Serve the subtitles as a separate HLS stream.
|
||||
/// </summary>
|
||||
Hls = 3
|
||||
Hls = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Drop the subtitle.
|
||||
/// </summary>
|
||||
Drop = 4
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user