C14.7 r1: gpui ends a GIF or WebP load at a bad frame, no path in its error; pictures in table cells
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
3b41f299fa
commit
69b26a868f
7 files changed
+45
-17
No files matched your search
Vendored
+5
-12
@@ -681,17 +681,14 @@ impl Asset for ImageAssetLoader {
|
||||
}
|
||||
frames.push(frame);
|
||||
}
|
||||
Err(err) => {
|
||||
log::debug!(
|
||||
"Skipping GIF frame in {source:?} due to decode error: {err}"
|
||||
);
|
||||
}
|
||||
// A bad frame ends it: the decoder may never stop.
|
||||
Err(err) => return Err(ImageCacheError::Image(Arc::new(err))),
|
||||
}
|
||||
}
|
||||
|
||||
if frames.is_empty() {
|
||||
return Err(ImageCacheError::Other(Arc::new(anyhow::anyhow!(
|
||||
"GIF could not be decoded: all frames failed ({source:?})"
|
||||
"GIF could not be decoded: no frames"
|
||||
))));
|
||||
}
|
||||
|
||||
@@ -713,17 +710,13 @@ impl Asset for ImageAssetLoader {
|
||||
}
|
||||
frames.push(frame);
|
||||
}
|
||||
Err(err) => {
|
||||
log::debug!(
|
||||
"Skipping WebP frame in {source:?} due to decode error: {err}"
|
||||
);
|
||||
}
|
||||
Err(err) => return Err(ImageCacheError::Image(Arc::new(err))),
|
||||
}
|
||||
}
|
||||
|
||||
if frames.is_empty() {
|
||||
return Err(ImageCacheError::Other(Arc::new(anyhow::anyhow!(
|
||||
"WebP could not be decoded: all frames failed ({source:?})"
|
||||
"WebP could not be decoded: no frames"
|
||||
))));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user