[FFmpeg-devel] [PATCH 0/2] Remove SDL2 output devices

Anton Khirnov anton at khirnov.net
Wed Feb 7 19:09:31 EET 2024


Quoting Stefano Sabatini (2024-02-05 01:02:20)
> This implies a misunderstanding of what these components are. If
> they are broken with ffmpeg.c this is not a good reason to remove
> them (ffmpeg.c is not the only user).

They are broken with _any_ caller that happens to call libavformat from
a thread other than the main one. Since libavformat API does not impose
any such restrictions on its callers, these devices are broken in
general.

> Also, it was already suggested some way to fix it

There is no way to fix them other than impose new restrictions on
callers...

> it's not like they are "broken by design",

...so they are precisely broken by design.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list