From bc7ebcd380ba8e811f0d2cbe295294377fd2a9cd Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 7 Jan 2016 15:25:02 +0100 Subject: [PATCH] Capabilities: query in 100 ms interval --- src/host.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host.cpp b/src/host.cpp index 397c5b464..1e67946d2 100644 --- a/src/host.cpp +++ b/src/host.cpp @@ -55,10 +55,10 @@ void print_capabilities(struct module *root, bool use_vidcap) // try to figure out actual input video format struct video_desc desc{}; if (use_vidcap && root) { - for (int attempt = 0; attempt < 2; ++attempt) { + for (int attempt = 0; attempt < 20; ++attempt) { struct msg_sender *m = (struct msg_sender *) new_message(sizeof(struct msg_sender)); m->type = SENDER_MSG_QUERY_VIDEO_MODE; - struct response *r = send_message_sync(root, "sender", (struct message *) m, 1000); + struct response *r = send_message_sync(root, "sender", (struct message *) m, 100); if (response_get_status(r) == RESPONSE_OK) { const char *text = response_get_text(r); istringstream iss(text);