[tracker] libtracker-extract: Only use FallbackRdfTypes from the first matching module



commit bfb995339308255fd8d9047e675be02113c9a1fe
Author: Andres Gomez <agomez igalia com>
Date:   Tue Jul 22 20:28:19 2014 +0300

    libtracker-extract: Only use FallbackRdfTypes from the first matching module
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733573

 src/libtracker-extract/tracker-module-manager.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-module-manager.c b/src/libtracker-extract/tracker-module-manager.c
index aaa3ce4..a6a25a1 100644
--- a/src/libtracker-extract/tracker-module-manager.c
+++ b/src/libtracker-extract/tracker-module-manager.c
@@ -265,10 +265,16 @@ tracker_extract_module_manager_get_fallback_rdf_types (const gchar *mimetype)
                        continue;
 
                for (i = 0; r_info->fallback_rdf_types[i]; i++) {
+                        g_debug ("Adding RDF type: %s, for module: %s",
+                                 r_info->fallback_rdf_types[i],
+                                 r_info->module_path);
                        g_hash_table_insert (rdf_types,
                                             r_info->fallback_rdf_types[i],
                                             r_info->fallback_rdf_types[i]);
                }
+
+                /* We only want the first RDF types matching */
+                break;
        }
 
        g_hash_table_iter_init (&iter, rdf_types);


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