Update revid.go and config.go for new vring buffer

Issue #214 resolved
Frank Cui created an issue

In revid.go and config.go:

  • Change imported package ring->vring.
  • The RTMPRBSize and MTSRBSize arguments should be now referring to the maximum number of elements that can be stored in the buffer. Change variable names to RTMPMaxElements and MTSMaxElementsor something appropriate.
  • The RTMPRBElementSize and MTSRBElementSize arguments should be now referring to the maximum capacity of the buffer in bytes. Change variable names to RTMPCapacity and MTSCapacity or something appropriate.
  • Select reasonable default values for the above variables in config.go
  • NewBuffer constructor now returns an additional error variable.

Comments (1)

  1. Log in to comment