[tracker] tracker-extract: Fix gstreamer module cuesheet handling



commit 2122731d358c6ff6725fa55c0a461ac1892f1664
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Mar 6 16:32:55 2016 +0100

    tracker-extract: Fix gstreamer module cuesheet handling
    
    When a single nfo:FileDataObject represents multiple nmm:MusicPieces
    (eg. flac files with a cue sheet). We attempted to drop the nmm:MusicPiece
    aspect from the nfo:FileDataObject, but we dropped the entire resource
    instead.
    
    What was intended here is only dropping the nmm:MusicPiece, so the file
    resource remains a nfo:Audio and nfo:FileDataObject, and the per-track
    nmm:MusicPiece backreference to it through nie:isStoredAs.

 src/tracker-extract/tracker-extract-gstreamer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index a9bc4cf..9c9dd7d 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1046,7 +1046,7 @@ delete_existing_tracks (TrackerSparqlBuilder *postupdate,
 
        tracker_sparql_builder_subject_variable (postupdate, "track");
        tracker_sparql_builder_predicate (postupdate, "a");
-       tracker_sparql_builder_object (postupdate, "rdfs:Resource");
+       tracker_sparql_builder_object (postupdate, "nmm:MusicPiece");
 
        if (graph) {
                tracker_sparql_builder_graph_close (postupdate);


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