evas/cserve2: fix crash with YUV tests in expedite.
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 1 Jul 2013 08:03:31 +0000 (17:03 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Tue, 2 Jul 2013 07:58:10 +0000 (16:58 +0900)
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
src/lib/evas/common/evas_image_scalecache.c
src/modules/evas/engines/software_generic/evas_engine.c

index 5d7a440..4c83ae6 100644 (file)
@@ -886,9 +886,6 @@ evas_common_rgba_image_scalecache_do_cbs(Image_Entry *ie, RGBA_Image *dst,
              if ((dounload) ||
                  ((im->cache_entry.flags.loaded) &&
                      ((!im->cs.no_free)
-#ifdef EVAS_CSERVE
-                      || (ie->data1)
-#endif
 #ifdef EVAS_CSERVE2
                       || (ie->data1)
 #endif
index 660249c..24016b8 100644 (file)
@@ -1070,13 +1070,11 @@ eng_image_data_get(void *data EINA_UNUSED, void *image, int to_write, DATA32 **i
 
         if (to_write)
           im = (RGBA_Image *)evas_cache2_image_writable(&im->cache_entry);
-
-        *image_data = im->image.data;
-        return im;
      }
+   else
 #endif
-
    error = evas_cache_image_load_data(&im->cache_entry);
+
    switch (im->cache_entry.space)
      {
       case EVAS_COLORSPACE_ARGB8888:
@@ -1136,7 +1134,7 @@ eng_image_data_put(void *data, void *image, DATA32 *image_data)
       case EVAS_COLORSPACE_YCBCR420NV12601_PL:
       case EVAS_COLORSPACE_YCBCR420TM12601_PL:
        if (image_data != im->cs.data)
-         {
+          {
             if (im->cs.data)
               {
                  if (!im->cs.no_free) free(im->cs.data);