[grilo-plugins/wip/hadess/tracker3-fixes] tracker3: Fix int conversion warning




commit fd78f5e3276fcfc28c434ffe46fe07257cc692a2
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 26 16:24:54 2020 +0200

    tracker3: Fix int conversion warning
    
    grilo-plugins/src/tracker3/grl-tracker-utils.c: In function ‘grl_tracker_build_resource_from_media’:
    grilo-plugins/src/tracker3/grl-tracker-utils.c:651:76: warning: passing argument 2 of 
‘grl_data_get_string’ makes integer from pointer without a cast [-Wint-conversion]
      651 |  grl_data_get_string (GRL_DATA (media), l->data));
          |                                         ~^~~~~~
          |                                          |
          |                                          gpointer {aka void *}

 src/tracker3/grl-tracker-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker3/grl-tracker-utils.c b/src/tracker3/grl-tracker-utils.c
index 13f313f9..37b0e81e 100644
--- a/src/tracker3/grl-tracker-utils.c
+++ b/src/tracker3/grl-tracker-utils.c
@@ -642,7 +642,7 @@ grl_tracker_build_resource_from_media (GrlMedia *media, GList *keys)
       hash = ensure_resource_for_property (resource, "nfo:hasHash", FALSE);
       tracker_resource_set_string (hash, "nfo:hashAlgorithm", "chromaprint");
       tracker_resource_set_string (hash, "nfo:hashValue",
-                                   grl_data_get_string (GRL_DATA (media), l->data));
+                                   grl_data_get_string (GRL_DATA (media), grl_metadata_key_chromaprint));
     } else if (l->data == GRLKEYID_TO_POINTER (GRL_METADATA_KEY_ARTIST)) {
       TrackerResource *artist;
       const gchar *artist_name;


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