mirror of
https://github.com/SunnyQjm/ndn_ffmpeg_rtc.git
synced 2026-10-05 01:15:41 +08:00
摄像头添加延迟
This commit is contained in:
1 parent
89a2e612ff
commit
3957c7db3f
1 file changed
+2
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "EasyCamera.h"
|
||||
#include <iostream>
|
||||
|
||||
#include <unistd.h>
|
||||
void EasyCamera::throwException(const std::string &msg) {
|
||||
std::string logMsg = "EasyCamera -> " + msg;
|
||||
throw FFmpegFailedException(logMsg);
|
||||
@@ -133,6 +133,7 @@ EasyCamera *EasyCamera::begin(const EasyCamera::CameraCaptureCallbackFunc &yuvCa
|
||||
exit = yuvCallback(pFrameYUV);
|
||||
});
|
||||
}
|
||||
usleep(2000);
|
||||
} else {
|
||||
exit = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user