so that the first image shows

This commit is contained in:
Dhanya Maliakal 2017-08-15 14:10:43 +02:00
parent 1e7932f09c
commit f8bb6a04a9

View File

@ -348,6 +348,9 @@ void DataProcessor::ProcessAnImage(char* buf) {
if (*dataStreamEnable) {
//restart timer
clock_gettime(CLOCK_REALTIME, &timerBegin);
timerBegin.tv_sec -= (*streamingTimerInMs) / 1000;
timerBegin.tv_nsec -= ((*streamingTimerInMs) % 1000) * 1000000;
//to send first image
currentFreqCount = *streamingFrequency;
}