[aravis] tool: always display device id for each camera.



commit 2b4872fa3bc64a9857edb47fe7c280e4ed037408
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Jun 8 17:05:01 2012 +0200

    tool: always display device id for each camera.
    
    This helps to identify from where comes the answer in case of command
    broadcast.

 src/arvtool.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/arvtool.c b/src/arvtool.c
index 37ee87a..0212fe6 100644
--- a/src/arvtool.c
+++ b/src/arvtool.c
@@ -246,10 +246,9 @@ main (int argc, char **argv)
 		device_id = arv_get_device_id (i);
 
 		if (g_pattern_match_string (pattern, device_id)) {
+			printf ("%s\n", device_id);
 			if (argc >= 2)
 				arv_tool_execute_command (argc, argv, device_id);
-			else
-				printf ("%s\n", device_id);
 			count++;
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]