From 2d37cd91c6718316188e7fd99088cda0e627db74 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 30 Nov 2020 19:21:43 +0100 Subject: Check magic bytes before passing a file to Imlib2's loader This works around a regression in Imlib2, which makes (un)loadable file detection quite slow when handling e.g. large video files. See and for details. Closes #505 --- test/feh.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/feh.t b/test/feh.t index baf5ee4..44f705f 100644 --- a/test/feh.t +++ b/test/feh.t @@ -47,7 +47,7 @@ if ( $version =~ m{ Compile-time \s switches : \s .* help }ox ) { } my $re_warning - = qr{${feh_name} WARNING: test/fail/... \- No Imlib2 loader for that file format\n}; + = qr{${feh_name} WARNING: test/fail/... \- Does not look like an image \(magic bytes missing\)\n}; my $re_loadable = qr{test/ok/...}; my $re_unloadable = qr{test/fail/...}; my $re_list_action = qr{test/ok/... 16x16}; -- cgit v1.2.3