[tracker/tracker-0.10] tracker-extract, gstreamer: Use the GEO information at extraction
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-extract, gstreamer: Use the GEO information at extraction
- Date: Mon, 17 Oct 2011 10:47:44 +0000 (UTC)
commit 065c4024be35a1bc26cf7c66883d975097bdcac3
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Oct 17 12:46:38 2011 +0200
tracker-extract, gstreamer: Use the GEO information at extraction
This was a porting issue. The function was never called.
Fixes NB#286558.
src/tracker-extract/tracker-extract-gstreamer.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 3d8fca8..8247dc6 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -436,8 +436,7 @@ static void
extractor_apply_geolocation_metadata (MetadataExtractor *extractor,
GstTagList *tag_list,
TrackerSparqlBuilder *preupdate,
- TrackerSparqlBuilder *metadata,
- const gchar *graph)
+ TrackerSparqlBuilder *metadata)
{
gchar *country, *city, *sublocation;
gdouble lat, lon, alt;
@@ -462,9 +461,6 @@ extractor_apply_geolocation_metadata (MetadataExtractor *extractor,
address_uri = tracker_sparql_get_uuid_urn ();
tracker_sparql_builder_insert_open (preupdate, NULL);
- if (graph) {
- tracker_sparql_builder_graph_open (preupdate, graph);
- }
tracker_sparql_builder_subject_iri (preupdate, address_uri);
tracker_sparql_builder_predicate (preupdate, "a");
@@ -485,9 +481,6 @@ extractor_apply_geolocation_metadata (MetadataExtractor *extractor,
tracker_sparql_builder_object_unvalidated (preupdate, country);
}
- if (graph) {
- tracker_sparql_builder_graph_close (preupdate);
- }
tracker_sparql_builder_insert_close (preupdate);
}
@@ -638,6 +631,11 @@ extract_metadata (MetadataExtractor *extractor,
}
+ extractor_apply_geolocation_metadata (extractor,
+ extractor->tagcache,
+ preupdate,
+ metadata);
+
/* Audio */
if (extractor->mime == EXTRACT_MIME_AUDIO) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]