1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #906, #902, remove the thread start and stop event

This commit is contained in:
winlin 2017-05-29 18:42:36 +08:00
parent 3ffb0980f5
commit b21f92f97a
12 changed files with 62 additions and 67 deletions

View file

@ -417,11 +417,6 @@ int SrsRtspConn::cycle()
srs_warn("client disconnect peer. ret=%d", ret);
}
return ERROR_SUCCESS;
}
void SrsRtspConn::on_thread_stop()
{
if (video_rtp) {
caster->free_port(video_rtp->port(), video_rtp->port() + 1);
}
@ -431,6 +426,8 @@ void SrsRtspConn::on_thread_stop()
}
caster->remove(this);
return ERROR_SUCCESS;
}
int SrsRtspConn::on_rtp_video(SrsRtpPacket* pkt, int64_t dts, int64_t pts)