> On Jan 3, 2026, at 16:59, Marcin Serwin via ffmpeg-devel
> <[email protected]> wrote:
>
> 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".
The ffplay vulkan renderer is focus on hardware decoding interoperation and
better
colorspace support. I don't think SDL3 can replace it directly.
>
> --
> Best regards,
> Marcin Serwin
> _______________________________________________
> ffmpeg-devel mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]