ports/multimedia/ffmpeg/files/patch-libavutil_thread.h
Jan Beich 685e477b80 multimedia/ffmpeg: update to 6.0
* --enable-avresample is gone per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/420cedd49745
* SHADERC replaces GLSLANG per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/da72aca7b025
* VULKAN is enabled per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/fa2e460f635
* LIBPLACEBO is enabled to have even more Vulkan goodies
* LCMS2 is enabled for better ICC profile support
* JXL is enabled for https://github.com/mpv-player/mpv/commit/1345977f9976

Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n6.0:/Changelog
PR:		261302
Reported by:	Repology
Exp-run by:	antoine
Approved by:	tcberner
2023-04-27 14:01:40 +02:00

14 lines
460 B
C

pthread_setname_np is implemented on top of PR_SET_NAME on Linux
and is also available on DragonFly, FreeBSD and Solaris
--- libavutil/thread.h.orig 2023-02-27 20:43:45 UTC
+++ libavutil/thread.h
@@ -196,6 +196,8 @@ static inline int ff_thread_setname(const char *name)
{
#if HAVE_PRCTL
return AVERROR(prctl(PR_SET_NAME, name));
+#elif HAVE_PTHREADS
+ return AVERROR(pthread_setname_np(pthread_self(), name));
#endif
return AVERROR(ENOSYS);