[tracker/roi-png-fix: 12/14] PDF extractor: build sparql for regions of interest in XMP



commit 1eebe67379342eadaa856eaf13c81b10df50e2e6
Author: Ivan Frade <ivan frade gmail com>
Date:   Mon Aug 29 12:12:40 2011 +0300

    PDF extractor: build sparql for regions of interest in XMP

 src/tracker-extract/tracker-extract-pdf.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index 023a4f2..513ccd5 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -569,6 +569,11 @@ tracker_extract_get_metadata (const gchar          *uri,
 
 			tracker_sparql_builder_object_blank_close (metadata); /* GeoLocation */
 		}
+
+                if (xd->regions) {
+                        tracker_xmp_apply_regions (preupdate, metadata, where, uri, xd);
+                }
+
 		tracker_xmp_free (xd);
 	} else {
 		/* So if we are here we have NO XMP data and we just



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