From f87b0f943f236d318ded467d886adae6455e6358 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Sun, 30 Jan 2022 15:53:21 +0000 Subject: [PATCH] Accepting request 950008 from home:alois:branches:graphics - Add qimgv-mpv_v2_fix.patch (fix Factory build) OBS-URL: https://build.opensuse.org/request/show/950008 OBS-URL: https://build.opensuse.org/package/show/graphics/qimgv?expand=0&rev=43 --- qimgv-mpv_v2_fix.patch | 22 ++++++++++++++++++++++ qimgv.changes | 5 +++++ qimgv.spec | 4 +++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 qimgv-mpv_v2_fix.patch diff --git a/qimgv-mpv_v2_fix.patch b/qimgv-mpv_v2_fix.patch new file mode 100644 index 0000000..3c703e5 --- /dev/null +++ b/qimgv-mpv_v2_fix.patch @@ -0,0 +1,22 @@ +From 8b01170753fcadc86770dd650c3d38a76e88963d Mon Sep 17 00:00:00 2001 +From: easymodo +Date: Sat, 18 Dec 2021 10:32:05 +0200 +Subject: [PATCH] fix mpv_opengl_init_params + +--- + plugins/player_mpv/src/mpvwidget.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/player_mpv/src/mpvwidget.cpp b/plugins/player_mpv/src/mpvwidget.cpp +index 16c4b168..2f8a39a5 100644 +--- a/plugins/player_mpv/src/mpvwidget.cpp ++++ b/plugins/player_mpv/src/mpvwidget.cpp +@@ -69,7 +69,7 @@ void MpvWidget::setOption(const QString& name, const QVariant& value) { + } + + void MpvWidget::initializeGL() { +- mpv_opengl_init_params gl_init_params{get_proc_address, nullptr, nullptr}; ++ mpv_opengl_init_params gl_init_params{get_proc_address, 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}, diff --git a/qimgv.changes b/qimgv.changes index 34082f0..849ec79 100644 --- a/qimgv.changes +++ b/qimgv.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 30 15:46:40 UTC 2022 - Luigi Baldoni + +- Add qimgv-mpv_v2_fix.patch (fix Factory build) + ------------------------------------------------------------------- Thu Sep 30 10:54:56 UTC 2021 - Luigi Baldoni diff --git a/qimgv.spec b/qimgv.spec index 8edfd80..e503ffa 100644 --- a/qimgv.spec +++ b/qimgv.spec @@ -1,7 +1,7 @@ # # spec file for package qimgv # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,8 @@ Patch1: qimgv-PIE.patch Patch2: qimgv-includepath.patch # PATCH-FIX-OPENSUSE qimgv-no_return_in_nonvoid.patch # aloisio@gmx.com pacify rpmlint Patch6: qimgv-no_return_in_nonvoid.patch +# PATCH-FIX-UPSTREAM qimgv-mpv_v2_fix.patch +Patch7: qimgv-mpv_v2_fix.patch BuildRequires: cmake >= 3.13 %if 0%{?suse_version} > 1500 BuildRequires: gcc-c++