Stefan Schuermans commited on 2014-02-18 21:29:57
Showing 1 changed files, with 2 additions and 2 deletions.
... | ... |
@@ -305,11 +305,11 @@ static int recv_and_out(SOCKET udpSocket, int dev_fd, |
305 | 305 |
|
306 | 306 |
// check if minimum interval between output frames is met |
307 | 307 |
gettimeofday(&out_now, NULL); |
308 |
- if (out_now.tv_sec > out_last.tv_sec - min_interval_ms / 1000) |
|
308 |
+ if (out_now.tv_sec > out_last.tv_sec - (int)min_interval_ms / 1000) |
|
309 | 309 |
out_ok = 1; |
310 | 310 |
else if ((out_now.tv_sec - out_last.tv_sec) * 1000 + |
311 | 311 |
((long)out_now.tv_usec - (long)out_last.tv_usec) / 1000 > |
312 |
- min_interval_ms) |
|
312 |
+ (long)min_interval_ms) |
|
313 | 313 |
out_ok = 1; |
314 | 314 |
else |
315 | 315 |
out_ok = 0; |
316 | 316 |