Decrease the select() timeout to 1000 us

This seems to work the best with high-quality video stream on Windows
This commit is contained in:
Aaro Altonen 2020-03-12 08:27:26 +02:00
parent de631fff5e
commit b522bb33a4
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ rtp_error_t __hevc_receiver(kvz_rtp::receiver *receiver)
FD_ZERO(&read_fds);
t_val.tv_sec = 0;
t_val.tv_usec = 1500;
t_val.tv_usec = 1000;
while (receiver->active()) {
FD_SET(socket.get_raw_socket(), &read_fds);