sanjeev pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=5cb4285df2c67026c7644c0627da88e3dc0c5e9d

commit 5cb4285df2c67026c7644c0627da88e3dc0c5e9d
Author: Sanjeev BA <as290...@samsung.com>
Date:   Tue Aug 5 08:09:33 2014 +0900

    Revert "Do not load non-image files in ephoto. Fix for 
https://phab.enlightenment.org/T802";
    
    This reverts commit 9cae696fab61f42ab16d38bf7c95c5605b924a0d.
    
    q!
    nnnls -la
    efr:wq!
    eet mime will always be an order of magnitude slower than 
evas_object_image_extension_can_load_get.
---
 src/bin/ephoto.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/ephoto.h b/src/bin/ephoto.h
index f4e8513..04e5530 100644
--- a/src/bin/ephoto.h
+++ b/src/bin/ephoto.h
@@ -163,17 +163,17 @@ extern int __log_domain;
 static inline Eina_Bool
 _ephoto_eina_file_direct_info_image_useful(const Eina_File_Direct_Info *info)
 {
-   const char *type, *bname;
+   const char /* *type, */ *bname;
 
    bname = info->path + info->name_start;
    if (bname[0] == '.') return EINA_FALSE;
    if ((info->type != EINA_FILE_REG) && (info->type != EINA_FILE_UNKNOWN))
      return EINA_FALSE;
 
-   //return evas_object_image_extension_can_load_get(bname);
+   return evas_object_image_extension_can_load_get(bname);
    /* seems that this does not play nice with threads */
-   if (!(type = efreet_mime_type_get(info->path))) return EINA_FALSE;
-   return strncmp(type, "image/", sizeof("image/") - 1) == 0;
+   //if (!(type = efreet_mime_type_get(info->path))) return EINA_FALSE;
+   //return strncmp(type, "image/", sizeof("image/") - 1) == 0;
 }
 
 extern int EPHOTO_EVENT_ENTRY_CREATE;

-- 


Reply via email to