From 258fc6e84ec0d8b5597c1b0ba1f37d8b20a01297 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 12 Dec 2011 18:17:47 +0100 Subject: Fix errors preventing time-limited grabbing --- cli.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli.c') diff --git a/cli.c b/cli.c index 5fc3162..d7f36d0 100644 --- a/cli.c +++ b/cli.c @@ -2488,6 +2488,10 @@ int main(int argc, char **argv) { if (run_time) timeout = PCILIB_TIMEOUT_INFINITE; else timeout = PCILIB_EVENT_TIMEOUT; } + + if (!size_set) { + if (run_time) size = 0; + } } if (mode != MODE_GRAB) { -- cgit v1.2.3