mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Merge pull request #1485 from DrPandemic/fix-skia-segfault
Fix skia segfault
This commit is contained in:
commit
3c16c34386
2 changed files with 7 additions and 1 deletions
|
@ -23,8 +23,9 @@
|
|||
- [fruhnow](https://github.com/fruhnow)
|
||||
- [Lynxy](https://github.com/Lynxy)
|
||||
- [fasheng](https://github.com/fasheng)
|
||||
- [ploughpuff](https://github.com/ploughpuff)
|
||||
- [ploughpuff](https://github.com/ploughpuff)
|
||||
- [pjeanjean](https://github.com/pjeanjean)
|
||||
- [DrPandemic](https://github.com/drpandemic)
|
||||
|
||||
# Emby Contributors
|
||||
|
||||
|
|
|
@ -185,6 +185,11 @@ namespace Jellyfin.Drawing.Skia
|
|||
|
||||
public ImageDimensions GetImageSize(string path)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
throw new FileNotFoundException("File not found", path);
|
||||
}
|
||||
|
||||
using (var s = new SKFileStream(path))
|
||||
using (var codec = SKCodec.Create(s))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue