mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-27 12:34:56 +01:00
update image processing
This commit is contained in:
@@ -449,7 +449,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
LiveStreamInfo current;
|
||||
if (_openStreams.TryGetValue(id, out current))
|
||||
{
|
||||
if (current.MediaSource.RequiresClosing ?? false)
|
||||
if (current.MediaSource.RequiresClosing)
|
||||
{
|
||||
var tuple = GetProvider(id);
|
||||
|
||||
|
||||
@@ -368,7 +368,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
info = await service.GetChannelStream(channel.ExternalId, mediaSourceId, cancellationToken).ConfigureAwait(false);
|
||||
info.RequiresClosing = true;
|
||||
|
||||
if (info.RequiresClosing ?? false)
|
||||
if (info.RequiresClosing)
|
||||
{
|
||||
var idPrefix = service.GetType().FullName.GetMD5().ToString("N") + "_";
|
||||
|
||||
@@ -385,7 +385,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
info = await service.GetRecordingStream(recording.ExternalId, null, cancellationToken).ConfigureAwait(false);
|
||||
info.RequiresClosing = true;
|
||||
|
||||
if (info.RequiresClosing ?? false)
|
||||
if (info.RequiresClosing)
|
||||
{
|
||||
var idPrefix = service.GetType().FullName.GetMD5().ToString("N") + "_";
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
{
|
||||
IEnumerable<MediaSourceInfo> sources;
|
||||
|
||||
var forceRequireOpening = false;
|
||||
|
||||
try
|
||||
{
|
||||
if (item is ILiveTvRecording)
|
||||
@@ -78,6 +80,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
|
||||
sources = _mediaSourceManager.GetStaticMediaSources(hasMediaSources, false)
|
||||
.ToList();
|
||||
|
||||
forceRequireOpening = true;
|
||||
}
|
||||
|
||||
var list = sources.ToList();
|
||||
@@ -87,12 +91,12 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
{
|
||||
source.Type = MediaSourceType.Default;
|
||||
|
||||
if (!source.RequiresOpening.HasValue)
|
||||
if (source.RequiresOpening || forceRequireOpening)
|
||||
{
|
||||
source.RequiresOpening = true;
|
||||
}
|
||||
|
||||
if (source.RequiresOpening.HasValue && source.RequiresOpening.Value)
|
||||
if (source.RequiresOpening)
|
||||
{
|
||||
var openKeys = new List<string>();
|
||||
openKeys.Add(item.GetType().Name);
|
||||
|
||||
Reference in New Issue
Block a user