sindresorhus / Gifski

🌈 Convert videos to high-quality GIFs on your Mac
https://sindresorhus.com/gifski
MIT License
7.72k stars 290 forks source link

Update gif.ski to 1.10.2 #295

Closed kornelski closed 1 year ago

kornelski commented 1 year ago

I've added gifski_set_error_message_callback that works similarly to gifski_set_write_callback, and gives a NUL-terminated string with fatal errors. These are never printed on success, so you can log them and report them the same way as crashes.

kornelski commented 1 year ago

It also catches all panics in gifski_finish and turns them into GifskiError::THREAD_LOST error code. If you get that error, it's a bug or some other dead-end situation, perhaps out of memory error.