mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor code
This commit is contained in:
parent
e19b927f92
commit
d81cde695d
4 changed files with 1 additions and 8 deletions
|
@ -231,7 +231,7 @@ srs_error_t SrsGb28181PsRtpProcessor::on_udp_packet(const sockaddr* from, const
|
|||
|
||||
//get previous timestamp by ssrc
|
||||
uint32_t pre_timestamp = pre_packet[pre_pkt_key]->timestamp;
|
||||
uint32_t pre_sequence_number = pre_packet[pre_pkt_key]->sequence_number;
|
||||
//uint32_t pre_sequence_number = pre_packet[pre_pkt_key]->sequence_number;
|
||||
|
||||
//TODO: check sequence number out of order
|
||||
//it may be out of order, or multiple streaming ssrc are the same
|
||||
|
@ -1403,8 +1403,6 @@ srs_error_t SrsGb28181Manger::start_ps_rtp_listen(std::string id, int port)
|
|||
|
||||
void SrsGb28181Manger::stop_rtp_listen(std::string id)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
map<std::string, SrsGb28181RtmpMuxer*>::iterator it = rtmpmuxers.find(id);
|
||||
if (it == rtmpmuxers.end()){
|
||||
return;
|
||||
|
|
|
@ -221,8 +221,6 @@ private:
|
|||
std::string _rtmp_url;
|
||||
std::string video_ssrc;
|
||||
std::string audio_ssrc;
|
||||
int audio_sample_rate;
|
||||
int audio_channel;
|
||||
|
||||
SrsGb28181Manger* gb28181_manger;
|
||||
SrsCoroutine* trd;
|
||||
|
|
|
@ -976,8 +976,6 @@ srs_error_t SrsGoApiRtcPlay::exchange_sdp(const std::string& app, const std::str
|
|||
|
||||
local_sdp.group_policy_ = "BUNDLE";
|
||||
|
||||
int mid = 0;
|
||||
|
||||
for (int i = 0; i < remote_sdp.media_descs_.size(); ++i) {
|
||||
const SrsMediaDesc& remote_media_desc = remote_sdp.media_descs_[i];
|
||||
|
||||
|
|
|
@ -99,7 +99,6 @@ std::string srs_sip_get_param(std::string msg, std::string param)
|
|||
{
|
||||
std::vector<std::string> vec_params = srs_string_split(msg, ";");
|
||||
|
||||
size_t min_pos = string::npos;
|
||||
for (vector<string>::iterator it = vec_params.begin(); it != vec_params.end(); ++it) {
|
||||
string value = *it;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue