mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
代码优化
This commit is contained in:
@@ -58,7 +58,7 @@ static bool loadFile(const char *path){
|
||||
RtpSelector::Instance().inputRtp(nullptr,rtp,len, &addr,&timeStamp);
|
||||
if(timeStamp_last){
|
||||
auto diff = timeStamp - timeStamp_last;
|
||||
if(diff > 0){
|
||||
if(diff > 0 && diff < 500){
|
||||
usleep(diff * 1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user