[aravis] genicam: add support for Group elements.



commit be9e5eaf304c7e01296687f6faf14c72b5ad482b
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed Jun 23 22:38:30 2010 +0200

    genicam: add support for Group elements.
    
    It should be enough to just ignore them.

 src/arvgc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/arvgc.c b/src/arvgc.c
index 3154d74..c283cff 100644
--- a/src/arvgc.c
+++ b/src/arvgc.c
@@ -139,6 +139,10 @@ arv_gc_parser_start_element(void *user_data,
 	ArvGcParserState *state = user_data;
 	ArvGcNode *node;
 
+	/* Just ignore Group elements */
+	if (g_strcmp0 ((char *) name, "Group") == 0)
+		return;
+
 	state->level++;
 
 	node = arv_gc_create_node (state->genicam, (char *) name);
@@ -202,6 +206,10 @@ arv_gc_parser_end_element (void *user_data,
 {
 	ArvGcParserState *state = user_data;
 
+	/* Just ignore Group elements */
+	if (g_strcmp0 ((char *) name, "Group") == 0)
+		return;
+
 	if (state->level == 2) {
 		if (state->level_2_node != NULL) {
 			arv_gc_parser_insert_node (state, state->level_2_node);



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