mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Make ReadInputAtNativeFramerate configurable for M3U tuner (#13773)
This commit is contained in:
parent
596b635511
commit
d1ed6593ad
@ -7165,7 +7165,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
state.RemoteHttpHeaders = mediaSource.RequiredHttpHeaders;
|
||||
state.ReadInputAtNativeFramerate = mediaSource.ReadAtNativeFramerate;
|
||||
|
||||
if (state.ReadInputAtNativeFramerate
|
||||
if ((state.ReadInputAtNativeFramerate && !state.IsSegmentedLiveStream)
|
||||
|| (mediaSource.Protocol == MediaProtocol.File
|
||||
&& string.Equals(mediaSource.Container, "wtv", StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
|
@ -9,6 +9,7 @@ namespace MediaBrowser.Model.LiveTv
|
||||
{
|
||||
AllowHWTranscoding = true;
|
||||
IgnoreDts = true;
|
||||
ReadAtNativeFramerate = false;
|
||||
AllowStreamSharing = true;
|
||||
AllowFmp4TranscodingContainer = false;
|
||||
FallbackMaxStreamingBitrate = 30000000;
|
||||
@ -43,5 +44,7 @@ namespace MediaBrowser.Model.LiveTv
|
||||
public string UserAgent { get; set; }
|
||||
|
||||
public bool IgnoreDts { get; set; }
|
||||
|
||||
public bool ReadAtNativeFramerate { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ namespace Jellyfin.LiveTv.TunerHosts
|
||||
RequiresClosing = true,
|
||||
RequiresLooping = info.EnableStreamLooping,
|
||||
|
||||
ReadAtNativeFramerate = false,
|
||||
ReadAtNativeFramerate = info.ReadAtNativeFramerate,
|
||||
|
||||
Id = channel.Path.GetMD5().ToString("N", CultureInfo.InvariantCulture),
|
||||
IsInfiniteStream = true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user