Evas DDS: Silently fail when the format is not DDS
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 24 Jul 2014 06:21:16 +0000 (15:21 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 19 Sep 2014 01:29:58 +0000 (10:29 +0900)
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

index 69c9219..d0a1c55 100644 (file)
@@ -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