Skip to content

Commit

Permalink
Revert "refactor: use a more straightforward return value (#3394)" (#…
Browse files Browse the repository at this point in the history
…3395)

This reverts commit 4344881.
  • Loading branch information
leszko authored Feb 18, 2025
1 parent 4344881 commit d84c0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/transcoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func testAccelTranscode(device string, tf func(device string) TranscoderSession,
}
outputProduced = len(td.Segments) > 0
outputValid = td.Pixels > 0
return outputProduced, outputValid, nil
return outputProduced, outputValid, err
}

// Test which capabilities transcoder supports
Expand Down Expand Up @@ -325,7 +325,7 @@ func testSoftwareTranscode(tmpdir string, fname string, profile ffmpeg.VideoProf
}
outputProduced = len(td.Segments) > 0
outputValid = td.Pixels > 0
return outputProduced, outputValid, nil
return outputProduced, outputValid, err
}

func TestSoftwareTranscoderCapabilities(tmpdir string) (caps []Capability, fatalError error) {
Expand Down

0 comments on commit d84c0c6

Please sign in to comment.