mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-07 06:27:36 +03:00
Kill ffmpeg if context is cancelled
This commit is contained in:
parent
76a94ecb70
commit
0bb133a6ac
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ func (e *externalTranscoder) Start(ctx context.Context, command, path string, ma
|
||||||
args := createTranscodeCommand(command, path, maxBitRate)
|
args := createTranscodeCommand(command, path, maxBitRate)
|
||||||
|
|
||||||
log.Trace(ctx, "Executing transcoding command", "cmd", args)
|
log.Trace(ctx, "Executing transcoding command", "cmd", args)
|
||||||
cmd := exec.Command(args[0], args[1:]...) // #nosec
|
cmd := exec.CommandContext(ctx, args[0], args[1:]...) // #nosec
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
if f, err = cmd.StdoutPipe(); err != nil {
|
if f, err = cmd.StdoutPipe(); err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue