Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Mar 31, 2020
1 parent e19b927 commit d81cde6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions trunk/src/app/srs_app_gb28181.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions trunk/src/app/srs_app_gb28181.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ class SrsGb28181RtmpMuxer : public ISrsCoroutineHandler,
std::string _rtmp_url;
std::string video_ssrc;
std::string audio_ssrc;
int audio_sample_rate;
int audio_channel;

SrsGb28181Manger* gb28181_manger;
SrsCoroutine* trd;
Expand Down
2 changes: 0 additions & 2 deletions trunk/src/app/srs_app_http_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
1 change: 0 additions & 1 deletion trunk/src/protocol/srs_sip_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d81cde6

Please sign in to comment.