[tracker/wip/sam/resource: 3/8] squash! Use TrackerResource instead of TrackerSparqlBuilder in all extractors



commit 5e5a6666475f6508769145bbef32664a432cc99e
Author: Sam Thursfield <sam afuera me uk>
Date:   Sat Jun 11 00:03:42 2016 +0100

    squash! Use TrackerResource instead of TrackerSparqlBuilder in all extractors
    
    Fix the libav extractor. I forgot to test this one.

 src/tracker-extract/tracker-extract-libav.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-libav.c b/src/tracker-extract/tracker-extract-libav.c
index 43e324e..92a2d9c 100644
--- a/src/tracker-extract/tracker-extract-libav.c
+++ b/src/tracker-extract/tracker-extract-libav.c
@@ -136,7 +136,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
                }
 
        } else if (audio_stream) {
-               TrackerResource *album = NULL, *album_artist = NULL, *performer = NULL;
+               TrackerResource *album_artist = NULL, *performer = NULL;
                char *album_artist_name;
                char *album_title;
 
@@ -233,7 +233,8 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
                }
 #endif
 
-               g_free(performer_uri);
+               if (performer)
+                       g_object_unref (performer);
        }
 
        if (format->bit_rate > 0) {


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