remove error message, fix message and add debug.

SVN revision: 53294
This commit is contained in:
Gustavo Sverzut Barbieri 2010-10-12 05:19:56 +00:00
parent 717c438a0e
commit 3b4f4d0f25
1 changed files with 6 additions and 3 deletions

View File

@ -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: