Commit 544797e5 by xiongziliang

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

parent 8efb2da5
...@@ -37,8 +37,10 @@ RtspPlayer::~RtspPlayer(void) { ...@@ -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();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论