rename
This commit is contained in:
parent
57fa27e32d
commit
8493b20b5e
@ -142,6 +142,7 @@ func (self *Server) ListenAndServe() (err error) {
|
||||
|
||||
type stream struct {
|
||||
codec av.CodecData
|
||||
lasttime time.Duration
|
||||
}
|
||||
|
||||
func newStream(codec av.CodecData) *stream {
|
||||
@ -972,6 +973,7 @@ func (self *Conn) writeChunks(csid uint32, timestamp uint32, msgtypeid uint8, ms
|
||||
msghdrtype := 0
|
||||
var tsdelta uint32
|
||||
|
||||
if false { // always msghdrtype==1 is ok
|
||||
cs := self.writecsmap[csid]
|
||||
if cs == nil {
|
||||
cs = &chunkStream{}
|
||||
@ -994,6 +996,7 @@ func (self *Conn) writeChunks(csid uint32, timestamp uint32, msgtypeid uint8, ms
|
||||
cs.msgdatalen = uint32(msgdatalen)
|
||||
cs.msgtypeid = msgtypeid
|
||||
cs.msgsid = msgsid
|
||||
}
|
||||
|
||||
if err = self.bw.WriteU8(byte(csid)&0x3f|byte(msghdrtype)<<6); err != nil {
|
||||
return
|
Loading…
x
Reference in New Issue
Block a user