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