mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-31 20:24:21 -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.RemoteHttpHeaders = mediaSource.RequiredHttpHeaders;
|
||||||
state.ReadInputAtNativeFramerate = mediaSource.ReadAtNativeFramerate;
|
state.ReadInputAtNativeFramerate = mediaSource.ReadAtNativeFramerate;
|
||||||
|
|
||||||
if (state.ReadInputAtNativeFramerate
|
if ((state.ReadInputAtNativeFramerate && !state.IsSegmentedLiveStream)
|
||||||
|| (mediaSource.Protocol == MediaProtocol.File
|
|| (mediaSource.Protocol == MediaProtocol.File
|
||||||
&& string.Equals(mediaSource.Container, "wtv", StringComparison.OrdinalIgnoreCase)))
|
&& string.Equals(mediaSource.Container, "wtv", StringComparison.OrdinalIgnoreCase)))
|
||||||
{
|
{
|
||||||
|
@ -9,6 +9,7 @@ namespace MediaBrowser.Model.LiveTv
|
|||||||
{
|
{
|
||||||
AllowHWTranscoding = true;
|
AllowHWTranscoding = true;
|
||||||
IgnoreDts = true;
|
IgnoreDts = true;
|
||||||
|
ReadAtNativeFramerate = false;
|
||||||
AllowStreamSharing = true;
|
AllowStreamSharing = true;
|
||||||
AllowFmp4TranscodingContainer = false;
|
AllowFmp4TranscodingContainer = false;
|
||||||
FallbackMaxStreamingBitrate = 30000000;
|
FallbackMaxStreamingBitrate = 30000000;
|
||||||
@ -43,5 +44,7 @@ namespace MediaBrowser.Model.LiveTv
|
|||||||
public string UserAgent { get; set; }
|
public string UserAgent { get; set; }
|
||||||
|
|
||||||
public bool IgnoreDts { get; set; }
|
public bool IgnoreDts { get; set; }
|
||||||
|
|
||||||
|
public bool ReadAtNativeFramerate { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ namespace Jellyfin.LiveTv.TunerHosts
|
|||||||
RequiresClosing = true,
|
RequiresClosing = true,
|
||||||
RequiresLooping = info.EnableStreamLooping,
|
RequiresLooping = info.EnableStreamLooping,
|
||||||
|
|
||||||
ReadAtNativeFramerate = false,
|
ReadAtNativeFramerate = info.ReadAtNativeFramerate,
|
||||||
|
|
||||||
Id = channel.Path.GetMD5().ToString("N", CultureInfo.InvariantCulture),
|
Id = channel.Path.GetMD5().ToString("N", CultureInfo.InvariantCulture),
|
||||||
IsInfiniteStream = true,
|
IsInfiniteStream = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user