Skip to content

Commit

Permalink
media-video/clip: fix removed libmpv api'
Browse files Browse the repository at this point in the history
Signed-off-by: Alfred Persson Forsberg <[email protected]>
  • Loading branch information
alfredfo committed Aug 15, 2022
1 parent b2b3134 commit ae8dc98
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions media-video/clip/files/clip-9999-libmpv-new-api.patch
Original file line number Diff line number Diff line change
@@ -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<char *>(MPV_RENDER_API_TYPE_OPENGL)},
{MPV_RENDER_PARAM_OPENGL_INIT_PARAMS, &gl_init_params},
--
2.35.1

0 comments on commit ae8dc98

Please sign in to comment.