summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2011-05-31 10:21:25 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2011-05-31 10:21:25 +0000
commitbc2f4c70e6ecc6eca38c1841c9ae84e9e37dd189 (patch)
tree1764d6c18011c8946cf7b910533ef869b0c95e10
parentd434a33694f8eb81991bde309742e793a48b503b (diff)
downloadevas_generic_loaders-bc2f4c70e6ecc6eca38c1841c9ae84e9e37dd189.tar.gz
evas_generic_loader: fix raw shmfile. It's a typo :P
SVN revision: 59838
-rw-r--r--src/bin/raw/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/raw/main.c b/src/bin/raw/main.c
index 56970cf..4d10216 100644
--- a/src/bin/raw/main.c
+++ b/src/bin/raw/main.c
@@ -85,10 +85,9 @@ read_raw_data(unsigned char* seg, int size, libraw_data_t *raw_data, int *w, int
goto clean_image;
*w = image->width;
*h = image->height;
-// shm_alloc(image->width * image->height * (sizeof(DATA32)));
-// if (!shm_addr)
-// goto clean_image;
- shm_addr = malloc(image->width * image->height * (sizeof(DATA32)));
+ shm_alloc(image->width * image->height * (sizeof(DATA32)));
+ if (!shm_addr)
+ goto clean_image;
memset(shm_addr, 0, image->width * image->height * (sizeof(DATA32)));
if (image->type != LIBRAW_IMAGE_BITMAP)
goto clean_image;
@@ -182,7 +181,7 @@ int main(int argc, char **argv)
printf("size %d %d\n", w, h);
printf("alpha 1\n");
- if (shm_fd >= 0) printf("shm file %s\n", shmfile);
+ if (shm_fd >= 0) printf("shmfile %s\n", shmfile);
else
{
printf("data\n");