[tracker/tracker-1.10] tracker-extract: Pass the flac metadata



commit b577f2ff8c97de26adbad0dc00574f0ed9c6ff74
Author: Marinus Schraal <mschraal src gnome org>
Date:   Mon Nov 7 15:21:10 2016 +0100

    tracker-extract: Pass the flac metadata
    
    Oversight from the move to TrackerResource, the flac extractor was not
    passing the metadata on for further processing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774062

 src/tracker-extract/tracker-extract-flac.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-flac.c b/src/tracker-extract/tracker-extract-flac.c
index b137d29..67cd657 100644
--- a/src/tracker-extract/tracker-extract-flac.c
+++ b/src/tracker-extract/tracker-extract-flac.c
@@ -284,6 +284,11 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
                tracker_resource_set_int64 (metadata, "nfo:duration", stream->data.stream_info.total_samples 
/ stream->data.stream_info.sample_rate);
        }
 
+       if (metadata) {
+               tracker_extract_info_set_resource (info, metadata);
+               g_object_unref (metadata);
+       }
+
        g_free (fd.artist);
        g_free (fd.album);
        g_free (fd.albumartist);


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