winlin

merge from github

@@ -257,7 +257,7 @@ void re_update(int64_t re, int32_t starttime, u_int32_t time) @@ -257,7 +257,7 @@ void re_update(int64_t re, int32_t starttime, u_int32_t time)
257 int64_t now = srs_utils_time_ms(); 257 int64_t now = srs_utils_time_ms();
258 int64_t diff = time - starttime - (now -re); 258 int64_t diff = time - starttime - (now -re);
259 if (diff > RE_PULSE_MS) { 259 if (diff > RE_PULSE_MS) {
260 - usleep(diff * 1000); 260 + usleep((useconds_t)(diff * 1000));
261 } 261 }
262 } 262 }
263 void re_cleanup(int64_t re, int32_t starttime, u_int32_t time) 263 void re_cleanup(int64_t re, int32_t starttime, u_int32_t time)
@@ -269,6 +269,6 @@ void re_cleanup(int64_t re, int32_t starttime, u_int32_t time) @@ -269,6 +269,6 @@ void re_cleanup(int64_t re, int32_t starttime, u_int32_t time)
269 if (diff > 0) { 269 if (diff > 0) {
270 srs_human_trace("re_cleanup, diff=%d, start=%d, last=%d ms", 270 srs_human_trace("re_cleanup, diff=%d, start=%d, last=%d ms",
271 (int)diff, starttime, time); 271 (int)diff, starttime, time);
272 - usleep(diff * 1000); 272 + usleep((useconds_t)(diff * 1000));
273 } 273 }
274 } 274 }