mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
fix rtsp and rtmp on_flow_report player or pusher judge error
This commit is contained in:
parent
9acd1c2b36
commit
266aaf9e0b
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user