mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
精简代码
This commit is contained in:
parent
10e74b7eb6
commit
3268daa42b
@ -30,11 +30,7 @@
|
||||
namespace mediakit{
|
||||
|
||||
const char *RtspSplitter::onSearchPacketTail(const char *data, int len) {
|
||||
if(!_enableRecvRtp){
|
||||
_isRtpPacket = false;
|
||||
return HttpRequestSplitter::onSearchPacketTail(data, len);
|
||||
}
|
||||
if(data[0] != '$'){
|
||||
if(!_enableRecvRtp || data[0] != '$'){
|
||||
//这是rtsp包
|
||||
_isRtpPacket = false;
|
||||
return HttpRequestSplitter::onSearchPacketTail(data, len);
|
||||
|
Loading…
Reference in New Issue
Block a user