From: Georgi Gerganov Date: Sun, 25 Jun 2023 11:34:10 +0000 (+0300) Subject: go : fix "cb" -> "callNewSegment" X-Git-Tag: upstream/1.7.4~1408 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=67564201ec4ec383ee5b21d6ac8750ee395fa8fa;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp go : fix "cb" -> "callNewSegment" --- diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go index e193832e..adb67466 100644 --- a/bindings/go/pkg/whisper/context.go +++ b/bindings/go/pkg/whisper/context.go @@ -161,7 +161,7 @@ func (context *context) Process( return ErrInternalAppError } // If the callback is defined then we force on single_segment mode - if cb != nil { + if callNewSegment != nil { context.params.SetSingleSegment(true) }