kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=b71221ce768610418fa58e7bad3d1b34537a4c87

commit b71221ce768610418fa58e7bad3d1b34537a4c87
Author: Kim Woelders <k...@woelders.dk>
Date:   Wed Sep 15 19:19:28 2021 +0200

    Revert "GIF, TIFF, WEBP loaders: Fix loading if filename does not have 
usual suffix"
    
    This reverts commit 43f82f3bc80324282ec22cb6b7c0e0b3ca2b663f.
---
 src/modules/loaders/loader_gif.c  | 1 -
 src/modules/loaders/loader_tiff.c | 1 -
 src/modules/loaders/loader_webp.c | 2 --
 3 files changed, 4 deletions(-)

diff --git a/src/modules/loaders/loader_gif.c b/src/modules/loaders/loader_gif.c
index fbac9cc..cc8baa7 100644
--- a/src/modules/loaders/loader_gif.c
+++ b/src/modules/loaders/loader_gif.c
@@ -18,7 +18,6 @@ load2(ImlibImage * im, int load_data)
    DATA32              colormap[256];
 
    fd = dup(fileno(im->fp));
-   lseek(fd, 0, SEEK_SET);
 
 #if GIFLIB_MAJOR >= 5
    gif = DGifOpenFileHandle(fd, NULL);
diff --git a/src/modules/loaders/loader_tiff.c 
b/src/modules/loaders/loader_tiff.c
index 2cbe6e2..2b76a4c 100644
--- a/src/modules/loaders/loader_tiff.c
+++ b/src/modules/loaders/loader_tiff.c
@@ -247,7 +247,6 @@ load2(ImlibImage * im, int load_data)
    rgba_image.image = NULL;
 
    fd = fileno(im->fp);
-   lseek(fd, 0, SEEK_SET);
    if (read(fd, &magic_number, sizeof(uint16_t)) != sizeof(uint16_t))
       goto quit;
 
diff --git a/src/modules/loaders/loader_webp.c 
b/src/modules/loaders/loader_webp.c
index 49f8136..de0c13b 100644
--- a/src/modules/loaders/loader_webp.c
+++ b/src/modules/loaders/loader_webp.c
@@ -53,8 +53,6 @@ load2(ImlibImage * im, int load_data)
    if (!encoded_data)
       goto quit;
 
-   lseek(fd, 0, SEEK_SET);
-
    /* Check signature */
    size = 12;
    if (read(fd, encoded_data, size) != (long)size)

-- 


Reply via email to