diff --git a/revid/revid.go b/revid/revid.go index d6d9e26d..04ffd9ad 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -121,8 +121,13 @@ func (r *Revid) Bitrate() int { return r.bitrate } -// GetConfigRef returns a pointer to the revidInst's Config struct object -func (r *Revid) GetConfigRef() *Config { +// Config returns the Revid's config. +func (r *Revid) Config() *Config { + // FIXME(kortschak): This is a massive footgun and should not exist. + // Since the config's fields are accessed in running goroutines, any + // mutation is a data race. With bad luck a data race is possible by + // reading the returned value since it is possible for the running + // Ravid to mutate the config it holds. return &r.config }