mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
for srt more check config
This commit is contained in:
parent
dfec2d76e0
commit
559b4d3fe7
@ -323,12 +323,20 @@ void SrtTransportImp::doCachedFunc() {
|
||||
|
||||
int SrtTransportImp::getLatencyMul() {
|
||||
GET_CONFIG(int, latencyMul, kLatencyMul);
|
||||
if (latencyMul <= 0) {
|
||||
WarnL << "config srt " << kLatencyMul << " not vaild";
|
||||
return 4;
|
||||
}
|
||||
return latencyMul;
|
||||
}
|
||||
|
||||
int SrtTransportImp::getPktBufSize() {
|
||||
// kPktBufSize
|
||||
GET_CONFIG(int, pktBufSize, kPktBufSize);
|
||||
if (pktBufSize <= 0) {
|
||||
WarnL << "config srt " << kPktBufSize << " not vaild";
|
||||
return 8912;
|
||||
}
|
||||
return pktBufSize;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user