mirror of https://bitbucket.org/ausocean/av.git
Reverted Session.clientBW2 to uint8.
This commit is contained in:
parent
e778488aba
commit
3ab2c1f69a
|
@ -260,7 +260,7 @@ func handlePacket(s *Session, pkt *packet) error {
|
||||||
case packetTypeClientBW:
|
case packetTypeClientBW:
|
||||||
s.clientBW = amf.DecodeInt32(pkt.body[:4])
|
s.clientBW = amf.DecodeInt32(pkt.body[:4])
|
||||||
if pkt.bodySize > 4 {
|
if pkt.bodySize > 4 {
|
||||||
s.clientBW2 = uint32(pkt.body[4])
|
s.clientBW2 = pkt.body[4]
|
||||||
} else {
|
} else {
|
||||||
s.clientBW2 = 0xff
|
s.clientBW2 = 0xff
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ type Session struct {
|
||||||
streamID int32
|
streamID int32
|
||||||
serverBW uint32
|
serverBW uint32
|
||||||
clientBW uint32
|
clientBW uint32
|
||||||
clientBW2 uint32
|
clientBW2 uint8
|
||||||
isPlaying bool
|
isPlaying bool
|
||||||
numInvokes int32
|
numInvokes int32
|
||||||
methodCalls []method
|
methodCalls []method
|
||||||
|
|
Loading…
Reference in New Issue