From 266aaf9e0b8c919fdb9012fa5b08d5de1322b0b7 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Fri, 24 Jun 2022 09:06:46 +0800 Subject: [PATCH] fix rtsp and rtmp on_flow_report player or pusher judge error --- src/Rtmp/RtmpSession.cpp | 2 +- src/Rtsp/RtspSession.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rtmp/RtmpSession.cpp b/src/Rtmp/RtmpSession.cpp index 36f8e84b..81a71c11 100644 --- a/src/Rtmp/RtmpSession.cpp +++ b/src/Rtmp/RtmpSession.cpp @@ -222,7 +222,7 @@ void RtmpSession::onCmd_deleteStream(AMFDecoder &dec) { sendStatus({ "level", "status", "code", "NetStream.Unpublish.Success", "description", "Stop publishing." }); - _push_src = nullptr; + //_push_src = nullptr; throw std::runtime_error(StrPrinter << "Stop publishing" << endl); } diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index 01adbd5d..ce66a3f2 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -868,7 +868,7 @@ void RtspSession::handleReq_Pause(const Parser &parser) { void RtspSession::handleReq_Teardown(const Parser &parser) { sendRtspResponse("200 OK"); - _push_src = nullptr; + //_push_src = nullptr; throw SockException(Err_shutdown,"recv teardown request"); }