fix segmenter v2 transitions (#2296)

This commit is contained in:
Jason Dove
2025-08-11 15:00:25 +00:00
committed by GitHub
parent 6f9952924b
commit 1cac210765
+7 -1
View File
@@ -340,12 +340,18 @@ public class InternalController : ControllerBase
linkedCts.Token);
}
_ = processWithPipe
var task = processWithPipe
.WithStandardOutputPipe(PipeTarget.ToStream(pipe.Writer.AsStream()))
.WithStandardErrorPipe(PipeTarget.ToStringBuilder(stdErrBuffer))
.WithValidation(CommandResultValidation.None)
.ExecuteAsync(linkedCts.Token);
// ensure pipe writer is completed when ffmpeg exits
_ = task.Task.ContinueWith(
(_, state) => ((PipeWriter)state!).Complete(),
pipe.Writer,
TaskScheduler.Default);
var contentType = mode switch
{
"segmenter-v2" => "video/x-matroska",