mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 12:11:36 +08:00
parent
e628cba1ca
commit
90c164f7f7
@ -483,6 +483,11 @@ void RtspPlayer::handleResPAUSE(const Parser &parser, int type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RtspPlayer::onWholeRtspPacket(Parser &parser) {
|
void RtspPlayer::onWholeRtspPacket(Parser &parser) {
|
||||||
|
if (!start_with(parser.method(), "RTSP")) {
|
||||||
|
// 不是rtsp回复,忽略
|
||||||
|
WarnL << "Not rtsp response: " << parser.method();
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
decltype(_on_response) func;
|
decltype(_on_response) func;
|
||||||
_on_response.swap(func);
|
_on_response.swap(func);
|
||||||
|
Loading…
Reference in New Issue
Block a user