fix rtsp and rtmp on_flow_report player or pusher judge error

This commit is contained in:
xiongguangjie 2022-06-24 09:06:46 +08:00
parent 9acd1c2b36
commit 266aaf9e0b
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ void RtmpSession::onCmd_deleteStream(AMFDecoder &dec) {
sendStatus({ "level", "status", sendStatus({ "level", "status",
"code", "NetStream.Unpublish.Success", "code", "NetStream.Unpublish.Success",
"description", "Stop publishing." }); "description", "Stop publishing." });
_push_src = nullptr; //_push_src = nullptr;
throw std::runtime_error(StrPrinter << "Stop publishing" << endl); throw std::runtime_error(StrPrinter << "Stop publishing" << endl);
} }

View File

@ -868,7 +868,7 @@ void RtspSession::handleReq_Pause(const Parser &parser) {
void RtspSession::handleReq_Teardown(const Parser &parser) { void RtspSession::handleReq_Teardown(const Parser &parser) {
sendRtspResponse("200 OK"); sendRtspResponse("200 OK");
_push_src = nullptr; //_push_src = nullptr;
throw SockException(Err_shutdown,"recv teardown request"); throw SockException(Err_shutdown,"recv teardown request");
} }