mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-15 21:43:03 +03:00
improve cancellation support of auto-organize
This commit is contained in:
@@ -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