[gnome-settings-daemon] color: Recreate the AutoEDID profile if the new EdidMd5 metadata does not exist
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Recreate the AutoEDID profile if the new EdidMd5 metadata does not exist
- Date: Tue, 30 Apr 2013 10:38:05 +0000 (UTC)
commit 9038193d2aff38d83f635ff44b226bade075c5ee
Author: Richard Hughes <richard hughsie com>
Date: Tue Apr 30 11:37:36 2013 +0100
color: Recreate the AutoEDID profile if the new EdidMd5 metadata does not exist
plugins/color/gsd-color-manager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 2e11945..eae5ee3 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -779,6 +779,7 @@ out:
static gboolean
gcm_session_check_profile_device_md (GFile *file)
{
+ const gchar *key_we_need = CD_PROFILE_METADATA_EDID_MD5;
CdIcc *icc;
gboolean ret;
@@ -786,10 +787,10 @@ gcm_session_check_profile_device_md (GFile *file)
ret = cd_icc_load_file (icc, file, CD_ICC_LOAD_FLAGS_METADATA, NULL, NULL);
if (!ret)
goto out;
- ret = cd_icc_get_metadata_item (icc, CD_PROFILE_METADATA_MAPPING_DEVICE_ID) != NULL;
+ ret = cd_icc_get_metadata_item (icc, key_we_need) != NULL;
if (!ret) {
g_debug ("auto-edid profile is old, and contains no %s data",
- CD_PROFILE_METADATA_MAPPING_DEVICE_ID);
+ key_we_need);
}
out:
g_object_unref (icc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]