Accepting request 948009 from home:Kieltux:branches:multimedia:apps
- Add minitube-fix-mpv-api-change.patch. See https://github.com/flaviotordini/minitube/issues/217 OBS-URL: https://build.opensuse.org/request/show/948009 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/minitube?expand=0&rev=75
This commit is contained in:
16
minitube-fix-mpv-api-change.patch
Normal file
16
minitube-fix-mpv-api-change.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff -Nur minitube-3.9.2/lib/media/src/mpv/mpvwidget.cpp new/lib/media/src/mpv/mpvwidget.cpp
|
||||
--- minitube-3.9.2/lib/media/src/mpv/mpvwidget.cpp 2021-11-11 13:11:41.000000000 +0100
|
||||
+++ new/lib/media/src/mpv/mpvwidget.cpp 2022-01-21 18:07:34.170765429 +0100
|
||||
@@ -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},
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 21 17:14:49 UTC 2022 - Carsten Ziepke <kieltux@gmail.com>
|
||||
|
||||
- Add minitube-fix-mpv-api-change.patch. See
|
||||
https://github.com/flaviotordini/minitube/issues/217
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 12 05:14:23 UTC 2021 - Carsten Ziepke <kieltux@gmail.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package minitube
|
||||
#
|
||||
# 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
|
||||
@@ -28,6 +28,8 @@ Source: %{name}-%{version}.tar.xz
|
||||
Source1: minitube.1
|
||||
# PATCH-FIX-OPENSUSE minitube-no-update-check.patch -- Disable build of internal updater
|
||||
Patch0: %{name}-no-update-check.patch
|
||||
# PATCH-FIX-UPSTREAM minitube-fix-mpv-api-change.patch -- Fix for mpv api change in mpv >= 0.34 -- gh#flaviotordini/minitube/#217
|
||||
Patch1: minitube-fix-mpv-api-change.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: libqt5-linguist
|
||||
@@ -58,6 +60,7 @@ it strives to create a new TV-like experience.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
# Remove build time references so build-compare can do its work
|
||||
FAKE_BUILDDATE="$(LC_ALL=C date -u -d "@${SOURCE_DATE_EPOCH}" '+%%b %%e %%Y')"
|
||||
|
Reference in New Issue
Block a user