Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multimedia/minitube: Fix build with mpv-0.35
PR: 267115
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
multimedia/minitube/files/patch-lib_media_src_mpv_mpvwidget.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267115 to allow to build with mpv-0.35 | ||
|
||
diff -Nur lib/media/src/mpv/mpvwidget.cpp.orig lib/media/src/mpv/mpvwidget.cpp | ||
--- lib/media/src/mpv/mpvwidget.cpp.orig | ||
+++ lib/media/src/mpv/mpvwidget.cpp | ||
@@ -30,7 +30,11 @@ | ||
qDebug() << "initializeGL" << nativeParent; | ||
if (nativeParent == nullptr) qFatal("No native parent"); | ||
|
||
- mpv_opengl_init_params gl_init_params{get_proc_address, this, nullptr}; | ||
+ #if MPV_CLIENT_API_VERSION < MPV_MAKE_VERSION(2,0) | ||
+ mpv_opengl_init_params gl_init_params{get_proc_address, this, nullptr}; | ||
+ #else | ||
+ mpv_opengl_init_params gl_init_params{get_proc_address, this}; | ||
+ #endif | ||
mpv_render_param params[]{{MPV_RENDER_PARAM_API_TYPE, (void *)MPV_RENDER_API_TYPE_OPENGL}, | ||
{MPV_RENDER_PARAM_OPENGL_INIT_PARAMS, &gl_init_params}, | ||
{MPV_RENDER_PARAM_INVALID, nullptr}, |