[gnome-color-manager] trivial: do not fail to color convert the image if there is not an embedded profile



commit c687f87c53d6bb42c7f150459a8de6775298b507
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 24 14:43:34 2010 +0100

    trivial: do not fail to color convert the image if there is not an embedded profile

 src/gcm-image.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/gcm-image.c b/src/gcm-image.c
index 94cd788..c7ff9f0 100644
--- a/src/gcm-image.c
+++ b/src/gcm-image.c
@@ -166,14 +166,12 @@ gcm_image_cms_convert_pixbuf (GcmImage *image)
 		/* use embedded profile */
 		profile_in = cmsOpenProfileFromMem (profile_data, profile_size);
 		profile_close_input = TRUE;
-		goto out;
 	} else if (priv->input_profile != NULL) {
 		/* use built-in */
 		profile_in = gcm_profile_get_handle (priv->input_profile);
 		profile_close_input = FALSE;
-		goto out;
 	} else {
-		egg_debug ("no profile, assume sRGB");
+		egg_debug ("no input profile, assume sRGB");
 		profile_in = cmsCreate_sRGBProfile ();
 		profile_close_input = TRUE;
 	}
@@ -183,9 +181,8 @@ gcm_image_cms_convert_pixbuf (GcmImage *image)
 		/* use built-in */
 		profile_out = gcm_profile_get_handle (priv->output_profile);
 		profile_close_output = FALSE;
-		goto out;
 	} else {
-		egg_debug ("no profile, assume sRGB");
+		egg_debug ("no output profile, assume sRGB");
 		profile_out = cmsCreate_sRGBProfile ();
 		profile_close_output = TRUE;
 	}



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