[tracker-miners/sam/acoustid-fix] Fix confusion between GValue and string
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/acoustid-fix] Fix confusion between GValue and string
- Date: Wed, 24 Jun 2020 19:14:45 +0000 (UTC)
commit 56d2e17f2774bdce206183f05df5a5cccccdecd3
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Jun 24 21:13:59 2020 +0200
Fix confusion between GValue and string
This error only occurs when building against GStreamer >= 1.17
where GST_TAG_ACOUSTID_FINGERPRINT is defined.
src/tracker-extract/tracker-extract-gstreamer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index af2153c44..88f34f6e5 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -665,11 +665,11 @@ extractor_apply_audio_metadata (MetadataExtractor *extractor,
TrackerResource *hash_resource = tracker_resource_new (NULL);
tracker_resource_set_uri (hash_resource, "rdf:type", "nfo:FileHash");
- tracker_resource_set_string (hash_resource, "nfo:hashValue", acoustid_fingerprint);
+ tracker_resource_set_gvalue (hash_resource, "nfo:hashValue", acoustid_fingerprint);
tracker_resource_set_string (hash_resource, "nfo:hashAlgorithm", "chromaprint");
tracker_resource_add_take_relation (audio, "nfo:hasHash", hash_resource);
- g_free (acoustid_fingerprint);
+ g_value_unset (acoustid_fingerprint);
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]