Bump Wuffs, support partial PNGs through it

This commit is contained in:
2022-06-04 19:16:00 +02:00
parent 8bba456b14
commit ac6b606ccc
3 changed files with 13 additions and 12 deletions

View File

@@ -425,8 +425,10 @@ read_wide_thumbnail(
bool sRGB = false;
GBytes *thum = cairo_surface_get_user_data(surface, &fiv_io_key_thum);
if (!thum) {
g_clear_error(error);
set_error(error, "not a thumbnail");
} else if (!check_wide_thumbnail_texts(thum, uri, mtime, &sRGB)) {
g_clear_error(error);
set_error(error, "mismatch");
} else {
// TODO(p): Add a function or a non-valueless define to check