mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
improve cancellation support of auto-organize
This commit is contained in:
parent
cb5c9333c5
commit
f641c501a7
10 changed files with 49 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue