Commit 98136e11 authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-extract-jpeg: Ensure UTF8-ness of metadata strings

Some image metadata formats (Exif, Iptc) don't have encoding
guarantees, so do our best here.


Closes: #13
parent a48d7d19
......@@ -416,7 +416,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
if (md.copyright) {
tracker_resource_set_string (metadata, "nie:copyright", md.copyright);
tracker_guarantee_resource_utf8_string (metadata, "nie:copyright", md.copyright);
if (md.white_balance) {
......@@ -475,7 +475,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
if (md.description) {
tracker_resource_set_string(metadata, "nie:description", md.description);
tracker_guarantee_resource_utf8_string (metadata, "nie:description", md.description);
if (md.metering_mode) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment