$ git diff --patch-with-stat --summary bb67268aab23952c50d1c532c6d8aec083fd8719..f398033a436f854cec0a0eaae150f704111aef19
.abf.yml | 2 +-
ac2d02530d3b555e44907162be05536a5927b2a0.patch | 74 ++++++++++++++++++++++++++
d16d9ad1d2b214996639e4f01c4515b611fb2739.patch | 27 ++++++++++
totem.spec | 12 ++---
4 files changed, 108 insertions(+), 7 deletions(-)
create mode 100644 ac2d02530d3b555e44907162be05536a5927b2a0.patch
create mode 100644 d16d9ad1d2b214996639e4f01c4515b611fb2739.patch
diff --git a/.abf.yml b/.abf.yml
index e9f913c..89fe7ec 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- totem-43.0.tar.xz: 27a4f0e906987119d81f050fbd704576d8604d47
+ totem-43.2.tar.xz: 1a28c9012d6c5535df0403435434f8b147518b45
diff --git a/ac2d02530d3b555e44907162be05536a5927b2a0.patch b/ac2d02530d3b555e44907162be05536a5927b2a0.patch
new file mode 100644
index 0000000..19e5b69
--- /dev/null
+++ b/ac2d02530d3b555e44907162be05536a5927b2a0.patch
@@ -0,0 +1,74 @@
+From ac2d02530d3b555e44907162be05536a5927b2a0 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess@hadess.net>
+Date: Tue, 11 Jul 2023 11:26:52 +0200
+Subject: [PATCH] gst: Force using newer GStreamer libva plugins
+
+Use the new "va" GStreamer plugin from -bad instead of the older
+gstreamer-vaapi plugin.
+
+This fixes a deadlock on wayland with gstreamer-vaapi:
+https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2720
+Re-adds DMABuf support removed to work-around scrambled video on Intel:
+https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2459
+---
+ src/gst/totem-gst-helpers.c | 20 ++++++++++++++++++++
+ src/gst/totem-gst-helpers.h | 1 +
+ src/totem-object.c | 2 ++
+ 3 files changed, 23 insertions(+)
+
+diff --git a/src/gst/totem-gst-helpers.c b/src/gst/totem-gst-helpers.c
+index 231c21d36..1fc615112 100644
+--- a/src/gst/totem-gst-helpers.c
++++ b/src/gst/totem-gst-helpers.c
+@@ -109,6 +109,26 @@ totem_gst_disable_hardware_decoders (void)
+ }
+ }
+
++void
++totem_gst_ensure_newer_hardware_decoders (void)
++{
++ GstRegistry *registry;
++ g_autolist(GstPluginFeature) hw_list = NULL;
++ GList *l;
++
++ registry = gst_registry_get ();
++ hw_list = gst_registry_feature_filter (registry, filter_hw_decoders, FALSE, NULL);
++ for (l = hw_list; l != NULL; l = l->next) {
++ const char *name;
++ name = gst_plugin_feature_get_plugin_name (l->data);
++ if (g_strcmp0 (name, "va") != 0)
++ continue;
++ g_debug ("Bumping feature %s of plugin %s to MAX",
++ gst_plugin_feature_get_name (l->data), name);
++ gst_plugin_feature_set_rank (l->data, UINT_MAX);
++ }
++}
++
+ /*
+ * vim: sw=2 ts=8 cindent noai bs=2
+ */
+diff --git a/src/gst/totem-gst-helpers.h b/src/gst/totem-gst-helpers.h
+index 923030ad3..289c0f645 100644
+--- a/src/gst/totem-gst-helpers.h
++++ b/src/gst/totem-gst-helpers.h
+@@ -50,3 +50,4 @@ void totem_gst_message_print (GstMessage *msg,
+ const char *filename);
+
+ void totem_gst_disable_hardware_decoders (void);
++void totem_gst_ensure_newer_hardware_decoders (void);
+diff --git a/src/totem-object.c b/src/totem-object.c
+index 01f2d0fc3..9ec0d6570 100644
+--- a/src/totem-object.c
++++ b/src/totem-object.c
+@@ -4019,6 +4019,8 @@ video_widget_create (TotemObject *totem)
+
+ if (g_settings_get_boolean (totem->settings, "force-software-decoders"))
+ totem_gst_disable_hardware_decoders ();
++ else
++ totem_gst_ensure_newer_hardware_decoders ();
+
+ if (!bacon_video_widget_check_init (totem->bvw, &err)) {
+ totem_interface_error_blocking (_("Videos could not startup."),
+--
+GitLab
+
diff --git a/d16d9ad1d2b214996639e4f01c4515b611fb2739.patch b/d16d9ad1d2b214996639e4f01c4515b611fb2739.patch
new file mode 100644
index 0000000..0d283db
--- /dev/null
+++ b/d16d9ad1d2b214996639e4f01c4515b611fb2739.patch
@@ -0,0 +1,27 @@
+From d16d9ad1d2b214996639e4f01c4515b611fb2739 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess@hadess.net>
+Date: Mon, 16 Oct 2023 09:44:31 +0200
+Subject: [PATCH] data: Add new canonical mime-type for AVI files
+
+As added in upstream shared-mime-info:
+https://gitlab.freedesktop.org/xdg/shared-mime-info/-/commit/02741a47ae6bc8e3f335e37806d9abcd8db341f3
+
+Closes: #604
+---
+ data/mime-type-list.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/data/mime-type-list.txt b/data/mime-type-list.txt
+index e3260f28d..c93c71174 100644
+--- a/data/mime-type-list.txt
++++ b/data/mime-type-list.txt
+@@ -110,6 +110,7 @@ video/msvideo
+ video/ogg
+ video/quicktime
+ video/vivo
++video/vnd.avi
+ video/vnd.divx
+ video/vnd.mpegurl
+ video/vnd.rn-realvideo
+--
+GitLab
diff --git a/totem.spec b/totem.spec
index e667e41..1d047be 100644
--- a/totem.spec
+++ b/totem.spec
@@ -17,12 +17,12 @@
Summary: Movie player for GNOME
Name: totem
-Version: 43.0
+Version: 43.2
Release: 1
License: GPLv2 with exception
Group: Video
-URL: http://projects.gnome.org/totem/
-Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
+URL: https://projects.gnome.org/totem/
+Source0: https://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
#(nl) KDE Solid integration : from mdv svn soft/mandriva-kde-translation/trunk/solid/
Source1: totem-opendvd.desktop
@@ -30,7 +30,7 @@ BuildRequires: intltool
BuildRequires: gnome-common
BuildRequires: pkgconfig(appstream-glib)
BuildRequires: shared-mime-info
-BuildRequires: python-pylint
+#BuildRequires: python-pylint
BuildRequires: desktop-file-utils
BuildRequires: docbook-dtd45-xml
BuildRequires: pkgconfig(gstreamer-1.0)
@@ -44,6 +44,7 @@ BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
+BuildRequires: gstreamer1.0-gtk
BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: itstool
@@ -95,6 +96,7 @@ Requires: gstreamer1.0-plugins-base
Requires: gstreamer1.0-plugins-good
Requires: gstreamer1.0-soup
Requires: gstreamer1.0-libav
+Requires: gstreamer1.0-gtk
Recommends: gstreamer1.0-resindvd
Recommends: gstreamer1.0-a52dec
# Must have plugins. Totem doesn't start without them
@@ -175,7 +177,6 @@ install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/apps/solid/actions/
%{_libdir}/totem/plugins/mpris/mpris.plugin
%{_libdir}/totem/plugins/opensubtitles
%{_libdir}/totem/plugins/properties
-%{_libdir}/totem/plugins/apple-trailers
%{_libdir}/totem/plugins/autoload-subtitles
%{_libdir}/totem/plugins/recent
%{_libdir}/totem/plugins/pythonconsole
@@ -184,7 +185,6 @@ install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/apps/solid/actions/
%{_libdir}/totem/plugins/screensaver
%{_libdir}/totem/plugins/screenshot
%{_libdir}/totem/plugins/skipto
-%{_libdir}/totem/plugins/vimeo
%{_libdir}/totem/plugins/variable-rate/libvariable-rate.so
%{_libdir}/totem/plugins/variable-rate/variable-rate.plugin
%{_libdir}/totem/plugins/open-directory/libopen-directory.so