jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a94ecda7c0fd398835bde99c09155a38596573a8

commit a94ecda7c0fd398835bde99c09155a38596573a8
Author: Jean-Philippe Andre <[email protected]>
Date:   Thu Jul 24 15:21:16 2014 +0900

    Evas DDS: Silently fail when the format is not DDS
    
    Evas can try all image loaders sequentially and they shouldn't
    complain that the file does not match their format.
---
 src/modules/evas/loaders/dds/evas_image_load_dds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/loaders/dds/evas_image_load_dds.c 
b/src/modules/evas/loaders/dds/evas_image_load_dds.c
index 69c9219..d0a1c55 100644
--- a/src/modules/evas/loaders/dds/evas_image_load_dds.c
+++ b/src/modules/evas/loaders/dds/evas_image_load_dds.c
@@ -185,7 +185,7 @@ evas_image_load_file_head_dds(void *loader_data,
    *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
    if (strncmp(m, "DDS ", 4) != 0)
      // TODO: Add support for DX10
-     FAIL();
+     goto on_error;
    m += 4;
 
    // Read DDS_HEADER

-- 


Reply via email to