fix hls direct regression (#1242)
This commit is contained in:
@@ -99,19 +99,28 @@ public class SoftwarePipelineBuilder : PipelineBuilderBase
|
||||
currentState = decoder.NextState(currentState);
|
||||
}
|
||||
|
||||
SetDeinterlace(videoInputFile, context, currentState);
|
||||
if (desiredState.VideoFormat != VideoFormat.Copy)
|
||||
{
|
||||
SetDeinterlace(videoInputFile, context, currentState);
|
||||
|
||||
currentState = SetScale(videoInputFile, videoStream, desiredState, currentState);
|
||||
currentState = SetPad(videoInputFile, videoStream, desiredState, currentState);
|
||||
SetSubtitle(videoInputFile, subtitleInputFile, context, desiredState, fontsFolder, subtitleOverlayFilterSteps);
|
||||
SetWatermark(
|
||||
videoStream,
|
||||
watermarkInputFile,
|
||||
context,
|
||||
ffmpegState,
|
||||
desiredState,
|
||||
currentState,
|
||||
watermarkOverlayFilterSteps);
|
||||
currentState = SetScale(videoInputFile, videoStream, desiredState, currentState);
|
||||
currentState = SetPad(videoInputFile, videoStream, desiredState, currentState);
|
||||
SetSubtitle(
|
||||
videoInputFile,
|
||||
subtitleInputFile,
|
||||
context,
|
||||
desiredState,
|
||||
fontsFolder,
|
||||
subtitleOverlayFilterSteps);
|
||||
SetWatermark(
|
||||
videoStream,
|
||||
watermarkInputFile,
|
||||
context,
|
||||
ffmpegState,
|
||||
desiredState,
|
||||
currentState,
|
||||
watermarkOverlayFilterSteps);
|
||||
}
|
||||
|
||||
// after everything else is done, apply the encoder
|
||||
if (pipelineSteps.OfType<IEncoder>().All(e => e.Kind != StreamKind.Video))
|
||||
@@ -122,6 +131,12 @@ public class SoftwarePipelineBuilder : PipelineBuilderBase
|
||||
videoInputFile.FilterSteps.Add(encoder);
|
||||
}
|
||||
}
|
||||
|
||||
// after decoder/encoder, return hls direct
|
||||
if (desiredState.VideoFormat == VideoFormat.Copy)
|
||||
{
|
||||
return FilterChain.Empty;
|
||||
}
|
||||
|
||||
List<IPipelineFilterStep> pixelFormatFilterSteps = SetPixelFormat(
|
||||
videoStream,
|
||||
|
||||
@@ -99,7 +99,7 @@ public class PlexMovieLibraryScanner :
|
||||
connectionParameters.Token);
|
||||
|
||||
// this shouldn't be called anymore
|
||||
protected override async Task<Option<MovieMetadata>> GetFullMetadata(
|
||||
protected override Task<Option<MovieMetadata>> GetFullMetadata(
|
||||
PlexConnectionParameters connectionParameters,
|
||||
PlexLibrary library,
|
||||
MediaItemScanResult<PlexMovie> result,
|
||||
@@ -111,7 +111,7 @@ public class PlexMovieLibraryScanner :
|
||||
throw new NotSupportedException("This shouldn't happen anymore");
|
||||
}
|
||||
|
||||
return None;
|
||||
return Task.FromResult<Option<MovieMetadata>>(None);
|
||||
}
|
||||
|
||||
// this shouldn't be called anymore
|
||||
|
||||
Reference in New Issue
Block a user