mirror of
https://github.com/aler9/gortsplib
synced 2025-11-03 03:03:31 +08:00
replace new() with initialize() (#490)
This commit is contained in:
@@ -8,19 +8,14 @@ import (
|
||||
)
|
||||
|
||||
type clientReader struct {
|
||||
c *Client
|
||||
c *Client
|
||||
|
||||
mutex sync.Mutex
|
||||
allowInterleavedFrames bool
|
||||
}
|
||||
|
||||
func newClientReader(c *Client) *clientReader {
|
||||
r := &clientReader{
|
||||
c: c,
|
||||
}
|
||||
|
||||
func (r *clientReader) start() {
|
||||
go r.run()
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
func (r *clientReader) setAllowInterleavedFrames(v bool) {
|
||||
|
||||
Reference in New Issue
Block a user