]> git.pld-linux.org Git - packages/efl.git/blob - efl-gif.patch
- typos
[packages/efl.git] / efl-gif.patch
1 --- efl-1.10.1/src/modules/evas/loaders/gif/evas_image_load_gif.c.orig  2014-06-03 12:38:57.000000000 +0200
2 +++ efl-1.10.1/src/modules/evas/loaders/gif/evas_image_load_gif.c       2014-06-14 16:57:31.264950243 +0200
3 @@ -528,7 +528,11 @@
4     ret = EINA_TRUE;
5  
6  on_error: // jump here on any errors to clean up
7 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
8 +   if (gif) DGifCloseFile(gif, NULL);
9 +#else
10     if (gif) DGifCloseFile(gif);
11 +#endif
12     if (fi.map) eina_file_map_free(f, fi.map);
13     return ret;
14  }
15 @@ -606,7 +610,11 @@
16     // start as we have nothnig to build on
17     if ((index > 0) && (index < loader->imgnum) && (animated->animated))
18       {
19 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
20 +        if (loader->gif) DGifCloseFile(loader->gif, NULL);
21 +#else
22          if (loader->gif) DGifCloseFile(loader->gif);
23 +#endif
24          if ((loader->fi.map) && (loader->f))
25            eina_file_map_free(loader->f, loader->fi.map);
26          loader->gif = NULL;
27 @@ -764,7 +772,11 @@
28     loader->imgnum = imgnum;
29     if ((animated->frame_count <= 1) || (rec == TERMINATE_RECORD_TYPE))
30       {
31 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
32 +        if (loader->gif) DGifCloseFile(loader->gif, NULL);
33 +#else
34          if (loader->gif) DGifCloseFile(loader->gif);
35 +#endif
36          if ((loader->fi.map) && (loader->f))
37            eina_file_map_free(loader->f, loader->fi.map);
38          loader->gif = NULL;
39 @@ -848,7 +860,11 @@
40  evas_image_load_file_close_gif2(void *loader_data)
41  {
42     Loader_Info *loader = loader_data;
43 +#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
44 +   if (loader->gif) DGifCloseFile(loader->gif, NULL);
45 +#else
46     if (loader->gif) DGifCloseFile(loader->gif);
47 +#endif
48     if ((loader->fi.map) && (loader->f))
49       eina_file_map_free(loader->f, loader->fi.map);
50     free(loader);
This page took 0.063319 seconds and 3 git commands to generate.