|
|
@ -269,7 +269,7 @@ namespace Jellyfin.Api.Helpers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_activeTranscodingJobs.Remove(job);
|
|
|
|
_activeTranscodingJobs.Remove(job);
|
|
|
|
|
|
|
|
|
|
|
|
if (!job.CancellationTokenSource!.IsCancellationRequested)
|
|
|
|
if (job.CancellationTokenSource?.IsCancellationRequested == false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
job.CancellationTokenSource.Cancel();
|
|
|
|
job.CancellationTokenSource.Cancel();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -751,7 +751,7 @@ namespace Jellyfin.Api.Helpers
|
|
|
|
_logger.LogError("FFmpeg exited with code {0}", process.ExitCode);
|
|
|
|
_logger.LogError("FFmpeg exited with code {0}", process.ExitCode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
process.Dispose();
|
|
|
|
job.Dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private async Task AcquireResources(StreamState state, CancellationTokenSource cancellationTokenSource)
|
|
|
|
private async Task AcquireResources(StreamState state, CancellationTokenSource cancellationTokenSource)
|
|
|
|