]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
go : reset context.n in Process() (#3503)
authorJosh Montoya <redacted>
Mon, 8 Dec 2025 16:33:07 +0000 (08:33 -0800)
committerGitHub <redacted>
Mon, 8 Dec 2025 16:33:07 +0000 (18:33 +0200)
bindings/go/pkg/whisper/context.go

index cb3d9eb8c1c3d1d3d4105642ee27602610fc8d97..294a0320c8a249e1f14ebee33f10e8e74e801404 100644 (file)
@@ -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
 }