[aravis] enums: use the right limit for arv_trigger_source_to_string.



commit 77d79e2cdc6fa6d4c8fd812cf87ab3d28d77a733
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed May 19 11:12:12 2010 -0400

    enums: use the right limit for arv_trigger_source_to_string.

 src/arvenums.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvenums.c b/src/arvenums.c
index 75b8d93..45939be 100644
--- a/src/arvenums.c
+++ b/src/arvenums.c
@@ -42,7 +42,7 @@ static const char *arv_trigger_source_strings[] = {
 const char *
 arv_trigger_source_to_string (ArvTriggerSource value)
 {
-	return arv_trigger_source_strings[CLAMP (value, 0, ARV_ACQUISITION_MODE_SINGLE_FRAME)];
+	return arv_trigger_source_strings[CLAMP (value, 0, ARV_TRIGGER_SOURCE_LINE_2)];
 }
 
 ArvTriggerSource



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