diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2020-11-30 19:21:43 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2020-11-30 19:27:15 +0100 | 
| commit | 2d37cd91c6718316188e7fd99088cda0e627db74 (patch) | |
| tree | 756102b8ac6f56dbf6281a03ead023205fd0bef9 /test | |
| parent | 2e4fc9018d5776bd63d48c2b4824ef04b3235ebc (diff) | |
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
<https://phab.enlightenment.org/T8739> and
<https://github.com/derf/feh/issues/505> for details.
Closes #505
Diffstat (limited to 'test')
| -rw-r--r-- | test/feh.t | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -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}; | 
