Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package minitube for openSUSE:Factory 
checked in at 2022-01-23 12:15:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/minitube (Old)
 and      /work/SRC/openSUSE:Factory/.minitube.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "minitube"

Sun Jan 23 12:15:36 2022 rev:29 rq:948046 version:3.9.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/minitube/minitube.changes        2021-11-13 
22:49:04.073274902 +0100
+++ /work/SRC/openSUSE:Factory/.minitube.new.1938/minitube.changes      
2022-01-23 12:16:51.068001506 +0100
@@ -1,0 +2,6 @@
+Fri Jan 21 17:14:49 UTC 2022 - Carsten Ziepke <[email protected]>
+
+- Add minitube-fix-mpv-api-change.patch. See 
+  https://github.com/flaviotordini/minitube/issues/217
+
+-------------------------------------------------------------------

New:
----
  minitube-fix-mpv-api-change.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ minitube.spec ++++++
--- /var/tmp/diff_new_pack.2ObU1O/_old  2022-01-23 12:16:51.639997682 +0100
+++ /var/tmp/diff_new_pack.2ObU1O/_new  2022-01-23 12:16:51.643997656 +0100
@@ -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 @@
 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 @@
 %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')"

++++++ minitube-fix-mpv-api-change.patch ++++++
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},

Reply via email to