[vlc-commits] [Git][videolan/vlc][3.0.x] vout_opengl: add compatibility alias for libplacebo v5

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Jan 1 15:55:32 UTC 2023



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
65ea8d19 by Niklas Haas at 2023-01-01T15:40:12+00:00
vout_opengl: add compatibility alias for libplacebo v5

This fixes compilation for now, albeit with many deprecation warnings.
It will probably break again whenever libplacebo v6 drops these
deprecated fields as well, but hopefully VLC v4 will be released by
then.

Fixes: #27624

- - - - -


1 changed file:

- modules/video_output/opengl/vout_helper.h


Changes:

=====================================
modules/video_output/opengl/vout_helper.h
=====================================
@@ -34,6 +34,11 @@
 #ifdef HAVE_LIBPLACEBO
 #include <libplacebo/shaders/colorspace.h>
 
+# if PL_MAJOR_VER >= 5
+# define pl_context_create pl_log_create
+# define pl_context_destroy pl_log_destroy
+# endif
+
 #define RENDER_INTENT_TEXT "Rendering intent for color conversion"
 #define RENDER_INTENT_LONGTEXT "The algorithm used to convert between color spaces"
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/65ea8d19d91ac1599a29e8411485a72fe89c45e2

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/65ea8d19d91ac1599a29e8411485a72fe89c45e2
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list