summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-09-15 19:19:28 +0200
committerKim Woelders <kim@woelders.dk>2021-09-15 19:43:48 +0200
commitb71221ce768610418fa58e7bad3d1b34537a4c87 (patch)
tree6a41b9a15da0da384f7f5f2c9fb15604ab208f78
parent43f82f3bc80324282ec22cb6b7c0e0b3ca2b663f (diff)
downloadimlib2-b71221ce768610418fa58e7bad3d1b34537a4c87.tar.gz
Revert "GIF, TIFF, WEBP loaders: Fix loading if filename does not have usual suffix"
This reverts commit 43f82f3bc80324282ec22cb6b7c0e0b3ca2b663f.
-rw-r--r--src/modules/loaders/loader_gif.c1
-rw-r--r--src/modules/loaders/loader_tiff.c1
-rw-r--r--src/modules/loaders/loader_webp.c2
3 files changed, 0 insertions, 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)