From 1faeda2f3342554c40aa778a128b93138d06bac2 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 29 Oct 2018 15:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspSession.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index 42174fba..413d4419 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -242,6 +242,9 @@ bool RtspSession::handleReq_Describe() { } //恢复现场 strongSelf->_parser = parserCopy; + char tmp[2 * 1024]; + strongSelf->_pcBuf = tmp; + if(!success){ //未找到相应的MediaSource strongSelf->send_StreamNotFound();