From: Josh Montoya Date: Mon, 8 Dec 2025 16:33:07 +0000 (-0800) Subject: go : reset context.n in Process() (#3503) X-Git-Tag: upstream/1.8.3~281 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=a8f45ab11d6731e591ae3d0230be3fec6c2efc91;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp go : reset context.n in Process() (#3503) --- diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go index cb3d9eb8..294a0320 100644 --- a/bindings/go/pkg/whisper/context.go +++ b/bindings/go/pkg/whisper/context.go @@ -237,6 +237,9 @@ func (context *context) Process( return err } + // Reset n so that more Segments can be available within NextSegment call + context.n = 0 + // Return success return nil }