fix segmenter v2 transitions (#2296)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user