From ae8dc98fda1212b05d299fe5c988fefcc361fe9c Mon Sep 17 00:00:00 2001 From: Alfred Persson Forsberg Date: Tue, 16 Aug 2022 01:27:22 +0200 Subject: [PATCH] media-video/clip: fix removed libmpv api' Signed-off-by: Alfred Persson Forsberg --- .../clip/files/clip-9999-libmpv-new-api.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 media-video/clip/files/clip-9999-libmpv-new-api.patch diff --git a/media-video/clip/files/clip-9999-libmpv-new-api.patch b/media-video/clip/files/clip-9999-libmpv-new-api.patch new file mode 100644 index 00000000000..31971dcf517 --- /dev/null +++ b/media-video/clip/files/clip-9999-libmpv-new-api.patch @@ -0,0 +1,23 @@ +https://invent.kde.org/maui/clip/-/merge_requests/2 +--- + src/backends/mpv/mpvobject.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/backends/mpv/mpvobject.cpp b/src/backends/mpv/mpvobject.cpp +index 557bd48..c9017f7 100644 +--- a/src/backends/mpv/mpvobject.cpp ++++ b/src/backends/mpv/mpvobject.cpp +@@ -73,7 +73,9 @@ QOpenGLFramebufferObject * MpvRenderer::createFramebufferObject(const QSize &siz + // init mpv_gl: + if (!obj->mpv_gl) + { +- mpv_opengl_init_params gl_init_params{get_proc_address_mpv, nullptr, nullptr}; ++ mpv_opengl_init_params gl_init_params; ++ gl_init_params.get_proc_address = get_proc_address_mpv; ++ gl_init_params.get_proc_address_ctx = nullptr; + mpv_render_param params[]{ + {MPV_RENDER_PARAM_API_TYPE, const_cast(MPV_RENDER_API_TYPE_OPENGL)}, + {MPV_RENDER_PARAM_OPENGL_INIT_PARAMS, &gl_init_params}, +-- +2.35.1 +