Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused transcoder2 #410

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions ffmpeg/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,20 +967,8 @@ func (t *Transcoder) Transcode(input *TranscodeOptionsIn, ps []TranscodeOptions)
return nil, ErrorMap[ret]
}
}
// This version of the code has two internal transcoder implementations, original
// and a refactored version. By default, we want to run the former, to stay on the
// safe side, but then we want to progressively enable the latter, "risky".
// It will be done by means of environment variable LPMS_USE_NEW_TRANSCODE
_, ok := os.LookupEnv("LPMS_USE_NEW_TRANSCODE")
var use_new_transcode C.int
if ok {
glog.Info("LPMS new transcode enabled")
use_new_transcode = 1
} else {
use_new_transcode = 0
}

ret := int(C.lpms_transcode(inp, paramsPointer, resultsPointer, C.int(len(params)), decoded, use_new_transcode))
ret := int(C.lpms_transcode(inp, paramsPointer, resultsPointer, C.int(len(params)), decoded))
if ret != 0 {
if LogTranscodeErrors {
glog.Error("Transcoder Return : ", ErrorMap[ret])
Expand Down
Loading
Loading