解决rtsp播放器TEARDOWN不传url的问题:#631

This commit is contained in:
xiongziliang 2020-12-19 09:20:24 +08:00
parent 8efb2da572
commit 544797e501
1 changed files with 4 additions and 2 deletions

View File

@ -37,8 +37,10 @@ RtspPlayer::~RtspPlayer(void) {
} }
void RtspPlayer::teardown(){ void RtspPlayer::teardown(){
if (alive()) { if (alive()) {
sendRtspRequest("TEARDOWN" ,_content_base); if (!_content_base.empty()) {
shutdown(SockException(Err_shutdown,"teardown")); sendRtspRequest("TEARDOWN", _content_base);
}
shutdown(SockException(Err_shutdown, "teardown"));
} }
_md5_nonce.clear(); _md5_nonce.clear();