add video_socket_fd into consideration of max_fd