From fe652e46b4fbb51323157bca5d539d5df7396241 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Thu, 16 Jun 2022 10:57:48 +0800 Subject: [PATCH] rtmp session when client stop publish not set push src null avoid judge player or pusher error --- src/Rtmp/RtmpSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }