mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 12:44:19 +01:00
improve cancellation support of auto-organize
This commit is contained in:
@@ -157,7 +157,7 @@ namespace MediaBrowser.Controller.LiveTv
|
||||
/// <param name="mediaSourceId">The media source identifier.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task{StreamResponseInfo}.</returns>
|
||||
Task<Tuple<MediaSourceInfo, IDirectStreamProvider, bool>> GetChannelStream(string id, string mediaSourceId, CancellationToken cancellationToken);
|
||||
Task<Tuple<MediaSourceInfo, IDirectStreamProvider>> GetChannelStream(string id, string mediaSourceId, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the program.
|
||||
|
||||
@@ -743,6 +743,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
|
||||
public bool CanStreamCopyVideo(EncodingJobInfo state, MediaStream videoStream)
|
||||
{
|
||||
if (!videoStream.AllowStreamCopy)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var request = state.BaseRequest;
|
||||
|
||||
if (videoStream.IsInterlaced)
|
||||
@@ -883,6 +888,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
|
||||
public bool CanStreamCopyAudio(EncodingJobInfo state, MediaStream audioStream, List<string> supportedAudioCodecs)
|
||||
{
|
||||
if (!audioStream.AllowStreamCopy)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var request = state.BaseRequest;
|
||||
|
||||
// Source and target codecs must match
|
||||
|
||||
Reference in New Issue
Block a user