mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRS: Fix bug
This commit is contained in:
parent
aaebecbcc9
commit
a826926073
26 changed files with 116 additions and 10 deletions
|
@ -1761,7 +1761,7 @@ namespace _srs_internal
|
|||
|
||||
// data
|
||||
if (!stream->require((int)value.length())) {
|
||||
return srs_error_new(ERROR_RTMP_AMF0_ENCODE, "requires %d only %d bytes", value.length(), stream->left());
|
||||
return srs_error_new(ERROR_RTMP_AMF0_ENCODE, "requires %" PRIu64 " only %d bytes", value.length(), stream->left());
|
||||
}
|
||||
stream->write_string(value);
|
||||
|
||||
|
|
|
@ -92,6 +92,8 @@ SrsStunPacket::SrsStunPacket()
|
|||
use_candidate = false;
|
||||
ice_controlled = false;
|
||||
ice_controlling = false;
|
||||
mapped_port = 0;
|
||||
mapped_address = 0;
|
||||
}
|
||||
|
||||
SrsStunPacket::~SrsStunPacket()
|
||||
|
|
|
@ -865,6 +865,8 @@ namespace _srs_internal
|
|||
c1s1::c1s1()
|
||||
{
|
||||
payload = NULL;
|
||||
version = 0;
|
||||
time = 0;
|
||||
}
|
||||
c1s1::~c1s1()
|
||||
{
|
||||
|
|
|
@ -792,6 +792,9 @@ SrsRtspSetupResponse::SrsRtspSetupResponse(int seq) : SrsRtspResponse(seq)
|
|||
{
|
||||
local_port_min = 0;
|
||||
local_port_max = 0;
|
||||
|
||||
client_port_min = 0;
|
||||
client_port_max = 0;
|
||||
}
|
||||
|
||||
SrsRtspSetupResponse::~SrsRtspSetupResponse()
|
||||
|
|
|
@ -319,6 +319,7 @@ SrsHttpMessage::SrsHttpMessage(ISrsReader* reader, SrsFastStream* buffer) : ISrs
|
|||
_content_length = -1;
|
||||
// From HTTP/1.1, default to keep alive.
|
||||
_keep_alive = true;
|
||||
type_ = 0;
|
||||
}
|
||||
|
||||
SrsHttpMessage::~SrsHttpMessage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue