From 3b4f4d0f253adebbf357e870b5e5e05f2540318e Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Tue, 12 Oct 2010 05:19:56 +0000 Subject: [PATCH] remove error message, fix message and add debug. SVN revision: 53294 --- src/bin/ephoto_flow_browser.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/ephoto_flow_browser.c b/src/bin/ephoto_flow_browser.c index e7c2937..e10981a 100644 --- a/src/bin/ephoto_flow_browser.c +++ b/src/bin/ephoto_flow_browser.c @@ -257,6 +257,7 @@ _file_rotation_get(const char *path) ExifData *exif; ExifEntry *entry; ExifByteOrder bo; + int exif_orient; if (!_path_is_jpeg(path)) return orient; @@ -266,9 +267,11 @@ _file_rotation_get(const char *path) entry = exif_data_get_entry(exif, EXIF_TAG_ORIENTATION); EINA_SAFETY_ON_NULL_GOTO(entry, end_entry); - switch (exif_get_short(entry->data, bo)) + exif_orient = exif_get_short(entry->data, bo); + DBG("exif_orient=%d", exif_orient); + switch (exif_orient) { - case 0: + case 1: orient = EPHOTO_ORIENT_0; break; case 3: @@ -281,7 +284,7 @@ _file_rotation_get(const char *path) orient = EPHOTO_ORIENT_270; break; default: - ERR("exif rotation not supported: %d", orient); + ERR("exif rotation not supported: %d", exif_orient); } end_entry: