mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix bug
This commit is contained in:
parent
a2d9f0a9ad
commit
2b725b8167
5 changed files with 39 additions and 2 deletions
|
@ -48,6 +48,7 @@ SrsDvrSegmenter::SrsDvrSegmenter()
|
|||
req = NULL;
|
||||
jitter = NULL;
|
||||
plan = NULL;
|
||||
wait_keyframe = true;
|
||||
|
||||
fragment = new SrsFragment();
|
||||
fs = new SrsFileWriter();
|
||||
|
|
|
@ -440,6 +440,7 @@ SrsEdgeForwarder::SrsEdgeForwarder()
|
|||
edge = NULL;
|
||||
req = NULL;
|
||||
send_error_code = ERROR_SUCCESS;
|
||||
source = NULL;
|
||||
|
||||
sdk = NULL;
|
||||
lb = new SrsLbRoundRobin();
|
||||
|
|
|
@ -512,7 +512,7 @@ srs_error_t SrsDtlsImpl::get_srtp_key(std::string& recv_key, std::string& send_k
|
|||
unsigned char material[SRTP_MASTER_KEY_LEN * 2] = {0}; // client(SRTP_MASTER_KEY_KEY_LEN + SRTP_MASTER_KEY_SALT_LEN) + server
|
||||
static const string dtls_srtp_lable = "EXTRACTOR-dtls_srtp";
|
||||
if (!SSL_export_keying_material(dtls, material, sizeof(material), dtls_srtp_lable.c_str(), dtls_srtp_lable.size(), NULL, 0, 0)) {
|
||||
return srs_error_new(ERROR_RTC_SRTP_INIT, "SSL export key r0=%u", ERR_get_error());
|
||||
return srs_error_new(ERROR_RTC_SRTP_INIT, "SSL export key r0=%lu", ERR_get_error());
|
||||
}
|
||||
|
||||
size_t offset = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue