On Sat Jan 3, 2026 at 8:12 AM CET, Gyan Doshi via ffmpeg-devel wrote:
>>> Migrates the FFplay media player to the new SDL version using the
>>> official tutorial at https://wiki.libsdl.org/SDL3/README-migration.
>>>
>> I've also considered the issue of supporting SDL3. The challenge is
>> how to maintain support for both SDL2 and SDL3 while avoiding a
>> codebase cluttered with conditional compilation, which would be
>> difficult to maintain.
>
> Support for SDL1 was dropped on the same day as SDL2 support was added.

Most of the changes are renames so perhaps it could be possible to make
a localized block with `#define`s to minimize the number of conditional
compilation macros throughout the logic. That being said I hoped for doing it
the same way as SDL 1->2 migration.

> What are the relevant improvements in SDL3 as far as current ffplay.c is
> concerned?

This is mostly code hygiene as SDL3 has cleaner and more consistent API. I'm not
aware of any functional changes between it and just using sdl2-compat.

One possible future improvement is utilizing the new GPU API to simplify the
Vulkan renderer code. Or perhaps it can be removed entirely in favor of setting
SDL_HINT_RENDER_DRIVER to "vulkan".

--
Best regards,
Marcin Serwin

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to