rtmp session when client stop publish not set push src null avoid judge player or pusher error

This commit is contained in:
xiongguangjie 2022-06-16 10:57:48 +08:00
parent b22e1cf937
commit fe652e46b4

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);
} }