Skip to content

Seek stream to the beginning if error in IMG_SaveWEBP_IO #574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2025

Conversation

LordOfXen
Copy link
Contributor

@LordOfXen LordOfXen commented Jul 30, 2025

IMG_LoadWEBP_IO and IMG_LoadWEBPAnimation_IO_Internal get the position at the beginning and set it back to the stream if the operation fails. Following this standard, the same was added to our new save function, so it behaves the same.

IMG_LoadWEBP_IO and IMG_LoadWEBPAnimation_IO_Internal get the position at the beginning and set it back to sthe tream if the operation fails. Following this standard, the same added to our new save function, so it behaves the same.
@LordOfXen LordOfXen changed the title Seek stream to the beginning if error Seek stream to the beginning if error in IMG_SaveWEBP_IO Jul 30, 2025
Assign default value to start so the compiler doesnt complain about it.
@slouken slouken merged commit da777b3 into libsdl-org:main Jul 30, 2025
5 checks passed
@slouken
Copy link
Collaborator

slouken commented Jul 30, 2025

Merged, thanks!

@LordOfXen LordOfXen deleted the patch-1 branch July 30, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants