public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/showtime] f44: Update to 50.1.1
@ 2026-11-24 15:16 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-11-24 15:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/showtime
Branch : f44
Commit : a6bcc4f59f61b6046b094e001e641cd90484685b
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-11-24T16:16:30+01:00
Stats  : +8/-302 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/showtime/c/a6bcc4f59f61b6046b094e001e641cd90484685b?branch=f44

Log:
Update to 50.1.1

---
diff --git a/.packit.yaml b/.packit.yaml
deleted file mode 100644
index 2ca5fc2..0000000
--- a/.packit.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
-# Minimal Packit Configuration for GNOME Packages
-# Copy this to your dist-git repository as .packit.yaml
-#
-# Prerequisites:
-# - Package is monitored by release-monitoring.org
-# - Monitoring status set to "Monitoring" in dist-git
-
-jobs:
-  # Automated updates for stable branches
-  - job: pull_from_upstream
-    trigger: release
-    dist_git_branches:
-      - fedora-stable
-
-    # ========================================================================
-    # VERSIONING: Choose ONE option based on your package's versioning scheme
-    # ========================================================================
-
-    # OPTION A: Major version only - allows minor and patch updates
-    #   For 2-digit: 50.0 -> 50.1 ✅, 50.x -> 51.0 ❌
-    #   For 3-digit: 1.2.3 -> 1.3.0 ✅, 1.x.x -> 2.0.0 ❌
-    #   Use for: GNOME apps/libs with 2-digit versions, or libraries following semver
-    version_update_mask: '^\d+\.'
-
-    # OPTION B: Major.minor version - patch updates only
-    #   Examples: 1.2.3 -> 1.2.4 ✅, 1.2.x -> 1.3.0 ❌
-    #   Use for: Libraries with ABI concerns, even/odd development scheme
-    # version_update_mask: '^\d+\.\d+\.'
-
-  # Build in Koji after merge
-  - job: koji_build
-    trigger: commit
-    dist_git_branches:
-      - fedora-stable
-
-  # Submit Bodhi update
-  - job: bodhi_update
-    trigger: commit
-    dist_git_branches:
-      - fedora-stable

diff --git a/0001-play-Use-GstPlay-s-missing-plugin-details-instead-of.patch b/0001-play-Use-GstPlay-s-missing-plugin-details-instead-of.patch
deleted file mode 100644
index c0e868e..0000000
--- a/0001-play-Use-GstPlay-s-missing-plugin-details-instead-of.patch
+++ /dev/null
@@ -1,244 +0,0 @@
-From 73e10943f0d64b247c6ec3b87b19ae7b5d7abe4c Mon Sep 17 00:00:00 2001
-From: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
-Date: Thu, 22 Oct 2026 06:52:00 -0700
-Subject: [PATCH] play: Use GstPlay's missing plugin details instead of
- get_state
-
-Blocking on get_state() on the main thread deadlocks with
-gtk4paintablesink. Instead, use WARNING and ERROR messages
-to derive missing plugins.
-
-Fixes https://gitlab.gnome.org/GNOME/showtime/-/work_items/299
----
- showtime/play.py           | 90 +++++++++++++++++++++++++++-----------
- showtime/widgets/window.py | 26 ++++-------
- 2 files changed, 73 insertions(+), 43 deletions(-)
-
-diff --git a/showtime/play.py b/showtime/play.py
-index 3a46df6..2b3cdb5 100644
---- a/showtime/play.py
-+++ b/showtime/play.py
-@@ -1,20 +1,24 @@
- # SPDX-License-Identifier: GPL-3.0-or-later
- # SPDX-FileCopyrightText: Copyright 2024-2026 kramo
- 
--from functools import partial
--from typing import Any
-+from typing import Any, NamedTuple
- 
- from gi.repository import (
-     Gdk,
--    GLib,
-     GObject,
-     Gst,
--    GstPbutils,
-     GstPlay,  # pyright: ignore[reportAttributeAccessIssue]
-     Gtk,
- )
- 
--from showtime import system, utils
-+from showtime import logger, system, utils
-+
-+
-+class MissingPlugin(NamedTuple):
-+    """A missing plugin reported by GStreamer."""
-+
-+    description: str
-+    detail: str
- 
- 
- def gst_play_setup(
-@@ -52,11 +56,47 @@ def gst_play_setup(
-     return paintable, play, pipeline, paintable_sink
- 
- 
-+def _should_missing_plugin_be_ignored(missing_plugin: MissingPlugin) -> bool:
-+    """Check if a missing plugin should be ignored.
-+
-+    qtdemux generates {audio,video,text,meta}/x-gst-fourcc-<fourcc>
-+    caps as a fallback for any fourcc code it doesn't recognise in a
-+    QuickTime/MP4 file. If a decoder existed, qtdemux would already
-+    know the fourcc and emit proper caps for it. These are therefore
-+    not actionable from the missing-plugin UI, so they're ignored.
-+    """
-+    return "x-gst-fourcc" in missing_plugin.detail
-+
-+
-+def _parse_missing_plugins(msg: GstPlay.PlayMessage) -> tuple[MissingPlugin, ...]:
-+    result: tuple[bool, list[str], list[str]] = (
-+        GstPlay.play_message_parse_error_missing_plugin(msg)
-+        if GstPlay.PlayMessage.parse_type(msg) == GstPlay.PlayMessage.ERROR
-+        else GstPlay.play_message_parse_warning_missing_plugin(msg)
-+    )
-+    found, descriptions, details = result
-+    if not found:
-+        return ()
-+
-+    missing_plugins: list[MissingPlugin] = [
-+        MissingPlugin(description, detail)
-+        for description, detail in zip(descriptions, details, strict=True)
-+    ]
-+
-+    return tuple(
-+        missing_plugin
-+        for missing_plugin in missing_plugins
-+        if not _should_missing_plugin_be_ignored(missing_plugin)
-+    )
-+
-+
- class Messenger(GObject.Object):
-     """A messenger between GStreamer and the app."""
- 
-     __gtype_name__ = "Messenger"
- 
-+    _pending_missing_plugins: tuple[MissingPlugin, ...] = ()
-+
-     state_changed = GObject.Signal(name="state-changed", arg_types=(object,))
-     duration_changed = GObject.Signal(name="duration-changed", arg_types=(object,))
-     position_updated = GObject.Signal(name="position-updated", arg_types=(object,))
-@@ -66,12 +106,11 @@ class Messenger(GObject.Object):
-     end_of_stream = GObject.Signal(name="end-of-stream")
-     warning = GObject.Signal(name="warning", arg_types=(object,))
-     error = GObject.Signal(name="error", arg_types=(object,))
--    missing_plugin = GObject.Signal(name="missing-plugin", arg_types=(object,))
-+    missing_plugins = GObject.Signal(name="missing-plugins", arg_types=(object, bool))
- 
-     def __init__(
-         self,
-         play: GstPlay.Play,
--        pipeline: Gst.Element,
-         **kwargs: Any,
-     ) -> None:
-         super().__init__(**kwargs)
-@@ -80,22 +119,12 @@ class Messenger(GObject.Object):
-             bus.add_signal_watch()
-             bus.connect("message", self._on_play_bus_message)
- 
--        if bus := pipeline.get_bus():
--            bus.add_signal_watch()
--            bus.connect(
--                "message",
--                lambda bus, msg: GLib.idle_add(
--                    partial(self._on_pipeline_bus_message, bus, msg)
--                ),
--            )
--
-     def _on_play_bus_message(self, _bus: Gst.Bus, msg: GstPlay.PlayMessage) -> None:
-         match GstPlay.PlayMessage.parse_type(msg):
-             case GstPlay.PlayMessage.STATE_CHANGED:
--                self.emit(
--                    "state-changed",
--                    GstPlay.PlayMessage.parse_state_changed(msg),
--                )
-+                state = GstPlay.PlayMessage.parse_state_changed(msg)
-+                self._resolve_pending_missing_plugins(state)
-+                self.emit("state-changed", state)
- 
-             case GstPlay.PlayMessage.DURATION_CHANGED:
-                 self.emit(
-@@ -125,12 +154,23 @@ class Messenger(GObject.Object):
-                 self.emit("end-of-stream")
- 
-             case GstPlay.PlayMessage.WARNING:
-+                if plugins := _parse_missing_plugins(msg):
-+                    self._pending_missing_plugins = plugins
-                 self.emit("warning", GstPlay.PlayMessage.parse_warning(msg))
- 
-             case GstPlay.PlayMessage.ERROR:
-                 error, _details = GstPlay.PlayMessage.parse_error(msg)
--                self.emit("error", error)
--
--    def _on_pipeline_bus_message(self, _bus: Gst.Bus, msg: Gst.Message) -> None:
--        if GstPbutils.is_missing_plugin_message(msg):
--            self.emit("missing-plugin", msg)
-+                if plugins := _parse_missing_plugins(msg):
-+                    logger.error(error.message)
-+                    self.emit("missing-plugins", plugins, False)
-+                else:
-+                    self.emit("error", error)
-+
-+    def _resolve_pending_missing_plugins(self, state: GstPlay.PlayState) -> None:
-+        match state:
-+            case GstPlay.PlayState.STOPPED:
-+                self._pending_missing_plugins = ()
-+            case GstPlay.PlayState.PAUSED | GstPlay.PlayState.PLAYING:
-+                if self._pending_missing_plugins:
-+                    self.emit("missing-plugins", self._pending_missing_plugins, True)
-+                    self._pending_missing_plugins = ()
-diff --git a/showtime/widgets/window.py b/showtime/widgets/window.py
-index b2adf3d..642ca43 100644
---- a/showtime/widgets/window.py
-+++ b/showtime/widgets/window.py
-@@ -33,7 +33,7 @@ from showtime import (
-     state_settings,
-     system,
- )
--from showtime.play import Messenger, gst_play_setup
-+from showtime.play import Messenger, MissingPlugin, gst_play_setup
- from showtime.utils import (
-     get_title,
-     lookup_action,
-@@ -141,7 +141,6 @@ class Window(Adw.ApplicationWindow):
-     _prev_motion_xy: tuple = (0, 0)
-     _prev_volume = -1
-     _toplevel_focused: bool = False
--    _already_shown_missing_plugins = False
- 
-     @GObject.Property(type=bool, default=False)
-     def mute(self) -> bool:
-@@ -212,7 +211,7 @@ class Window(Adw.ApplicationWindow):
- 
-         self.paintable.connect("invalidate-size", self._on_paintable_invalidate_size)
- 
--        messenger = Messenger(self.play, self.pipeline)
-+        messenger = Messenger(self.play)
-         messenger.connect("state-changed", self._on_playback_state_changed)
-         messenger.connect("duration-changed", self._on_duration_changed)
-         messenger.connect("position-updated", self._on_position_updated)
-@@ -222,7 +221,7 @@ class Window(Adw.ApplicationWindow):
-         messenger.connect("end-of-stream", self._on_end_of_stream)
-         messenger.connect("warning", self._on_warning)
-         messenger.connect("error", self._on_error)
--        messenger.connect("missing-plugin", self._on_missing_plugin)
-+        messenger.connect("missing-plugins", self._on_missing_plugins)
- 
-         if PROFILE == "development":
-             self.add_css_class("devel")
-@@ -292,7 +291,6 @@ class Window(Adw.ApplicationWindow):
-         app.save_play_position(self)  # pyright: ignore[reportAttributeAccessIssue]
- 
-         self._playing_gfile = gfile
--        self._already_shown_missing_plugins = False
- 
-         try:
-             file_info = gfile.query_info(
-@@ -773,21 +771,13 @@ class Window(Adw.ApplicationWindow):
-         self.placeholder_stack.props.visible_child = self.error_status_page
-         self.stack.props.visible_child = self.placeholder_page
- 
--    def _on_missing_plugin(self, _obj, msg: Gst.Message) -> None:
--        if self._already_shown_missing_plugins:
--            return
--
--        self._already_shown_missing_plugins = True
--
--        # https://gstreamer.freedesktop.org/documentation/additional/design/missing-plugins.html#partially-missing-plugins
--        if partially_missing := (
--            self.pipeline.get_state(Gst.CLOCK_TIME_NONE)[0]
--            != Gst.StateChangeReturn.FAILURE
--        ):
-+    def _on_missing_plugins(
-+        self, _obj, missing_plugins: tuple[MissingPlugin, ...], partially_missing: bool
-+    ) -> None:
-+        if partially_missing:
-             self.pause()
- 
--        desc = GstPbutils.missing_plugin_message_get_description(msg)
--        detail = GstPbutils.missing_plugin_message_get_installer_detail(msg)
-+        desc, detail = missing_plugins[0]
-         group = Adw.PreferencesGroup(
-             halign=Gtk.Align.CENTER,
-             width_request=250,
--- 
-2.55.0
-

diff --git a/README.md b/README.md
deleted file mode 100644
index a3c5534..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# showtime
-
-The showtime package

diff --git a/showtime.spec b/showtime.spec
index 2c86981..f631e76 100644
--- a/showtime.spec
+++ b/showtime.spec
@@ -1,11 +1,8 @@
-%global glib2_version 2.79.0
-%global gtk4_version 4.15.0
-%global libadwaita_version 1.6~beta
-%global blueprint_compiler_version 0.18
+%global gtk4_version 4.18.0
+%global libadwaita_version 1.8~alpha
 
 Name:           showtime
-Version:        50.0
-
+Version:        50.1.1
 Release:        %autorelease
 Summary:        Modern video player built using GTK4
 
@@ -13,27 +10,23 @@ License:        GPL-3.0-or-later
 URL:            https://apps.gnome.org/Showtime/
 Source0:        https://download.gnome.org/sources/%{name}/%{gnome_major_version}/%{name}-%{gnome_tarball_version}.tar.xz
 
-Patch0: 0001-play-Use-GstPlay-s-missing-plugin-details-instead-of.patch
-
 %gnome_check_version
 
 BuildArch:      noarch
 
+BuildRequires:  blueprint-compiler >= 0.17
 BuildRequires:  desktop-file-utils
-BuildRequires:  gcc
 BuildRequires:  gettext
+BuildRequires:  libappstream-glib
 BuildRequires:  meson
-BuildRequires:  blueprint-compiler >= %{blueprint_compiler_version}
 BuildRequires:  python3-devel
-BuildRequires:  pkgconfig(glib-2.0) >= %{glib2_version}
-BuildRequires:  pkgconfig(gnome-desktop-4)
+
 BuildRequires:  pkgconfig(gtk4) >= %{gtk4_version}
 BuildRequires:  pkgconfig(libadwaita-1) >= %{libadwaita_version}
-BuildRequires:  desktop-file-utils
-BuildRequires:  libappstream-glib
 
 Requires:       gtk4 >= %{gtk4_version}
 Requires:       libadwaita >= %{libadwaita_version}
+
 Requires:       python3
 Requires:       hicolor-icon-theme
 Requires:       gstreamer1-plugins-base

diff --git a/sources b/sources
index 5b46048..6a6b374 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (showtime-50.0.tar.xz) = d532bc97d33aff9fb691349d28214fa58d5e2f20a991653e175da6035e3c662b10ee2076916cd55c3a4c51dafaaea9a85202ed27a70e46e8f66551801cabf652
+SHA512 (showtime-50.1.1.tar.xz) = c8f46f1b7aa7324d3bf50d57a16d6dd3260fe1a717201e326b11ed1757416bc0fa45feb5a846eb731b2481ee10cadacc342ef8538050d60086940f13d4f9dd94

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 15:16 [rpms/showtime] f44: Update to 50.1.1 Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox