mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #1631 from razzfazz/hdhr_config_hw_transcode_dev
allow disabling of hardware transcoding on HDTC-2US (dev)
This commit is contained in:
commit
211d1af395
2 changed files with 4 additions and 2 deletions
|
@ -31,6 +31,7 @@ namespace MediaBrowser.Model.LiveTv
|
|||
public string Type { get; set; }
|
||||
public string DeviceId { get; set; }
|
||||
public bool ImportFavoritesOnly { get; set; }
|
||||
public bool AllowHWTranscoding { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
public string M3UUrl { get; set; }
|
||||
public string InfoUrl { get; set; }
|
||||
|
@ -47,6 +48,7 @@ namespace MediaBrowser.Model.LiveTv
|
|||
public TunerHostInfo()
|
||||
{
|
||||
IsEnabled = true;
|
||||
AllowHWTranscoding = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -389,7 +389,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
|||
string model = await GetModelInfo(info, cancellationToken).ConfigureAwait(false);
|
||||
model = model ?? string.Empty;
|
||||
|
||||
if (model.IndexOf("hdtc", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
if (info.AllowHWTranscoding && (model.IndexOf("hdtc", StringComparison.OrdinalIgnoreCase) != -1))
|
||||
{
|
||||
list.Add(await GetMediaSource(info, hdhrId, "heavy").ConfigureAwait(false));
|
||||
|
||||
|
|
Loading…
Reference in a new issue