guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ffc3c407281abdbae259629b474acf8081b06390
Author: Liliana Marie Prikler <[email protected]>
AuthorDate: Mon Nov 9 17:44:36 2026 +0100

    gnu: gst-plugins-base: Graft to 1.28.9. [security fixes]
    
    * gnu/packages/gst-plugins-base.scm (gst-plugins-base/fixed): New variable.
    (gst-plugins-base)[replacement]: Use it here.
    
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/gstreamer.scm                         | 17 ++++++++
 ...t-plugins-base-decodebin3-fail-gracefully.patch | 41 +++++++++++++++++
 ...gst-plugins-base-parsebin-wait-for-parser.patch | 51 ++++++++++++++++++++++
 3 files changed, 109 insertions(+)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 8935f38a56c..5b9918563c5 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2024 Remco van 't Veer <[email protected]>
 ;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
 ;;; Copyright © 2026 Noé Lopez <[email protected]>
+;;; Copyright © 2026 Igorj Gorjaĉev <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -537,6 +538,7 @@ This package provides the core library and elements.")
 (define-public gst-plugins-base
   (package
     (name "gst-plugins-base")
+    (replacement gst-plugins-base/fixed)
     (version "1.28.1")
     (source
      (origin
@@ -646,6 +648,21 @@ This package provides the core library and elements.")
 for the GStreamer multimedia library.")
     (license license:lgpl2.0+)))
 
+(define gst-plugins-base/fixed
+  (package
+    (inherit gst-plugins-base)
+    (name "gst-plugins-base")
+    (version "1.28.9")
+    (source
+     (origin
+       (inherit (package-source gst-plugins-base))
+       (uri (string-append "https://gstreamer.freedesktop.org/src/"; name "/"
+                          name "-" version ".tar.xz"))
+       (sha256
+        (base32
+         "1hfxgf29wklvqq08nbijrqmyb7rc0cn9dsy0cgvsxri0nmladzf1"))
+       (patches (list))))))
+
 (define-public gst-plugins-good
   (package
     (name "gst-plugins-good")
diff --git 
a/gnu/packages/patches/gst-plugins-base-decodebin3-fail-gracefully.patch 
b/gnu/packages/patches/gst-plugins-base-decodebin3-fail-gracefully.patch
new file mode 100644
index 00000000000..6f03a0ec27d
--- /dev/null
+++ b/gnu/packages/patches/gst-plugins-base-decodebin3-fail-gracefully.patch
@@ -0,0 +1,41 @@
+From 3f34f35f07de9aedc22c314b8faa1d158b85fba8 Mon Sep 17 00:00:00 2001
+From: Edward Hervey <[email protected]>
+Date: Tue, 13 Oct 2026 10:44:15 +0200
+Subject: [PATCH] decodebin3: fail gracefully when a stream has no collection
+
+mq_slot_handle_stream_start() asserted that every stream-start matched
+a known stream collection, so an upstream publishing a pad whose
+stream-collection does not cover the stream-start it then emits turned
+a stream problem into a process abort.
+
+Post a stream error naming the stream id and the pad instead, and return
+without touching the output collection. Selection state is left as it
+was so the remaining inputs keep working.
+
+Part-of: 
<https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/12700>
+---
+ gst/playback/gstdecodebin3.c | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/gst/playback/gstdecodebin3.c b/gst/playback/gstdecodebin3.c
+index 7286570d133..b199adfe66a 100644
+--- a/gst/playback/gstdecodebin3.c
++++ b/gst/playback/gstdecodebin3.c
+@@ -3378,7 +3378,13 @@ mq_slot_handle_stream_start (MultiQueueSlot * slot, 
GstEvent * stream_event)
+ 
+   collection =
+       find_collection_for_stream (dbin, (gchar *) slot->active_stream_id);
+-  g_assert (collection);
++  if (G_UNLIKELY (collection == NULL)) {
++    GST_ELEMENT_ERROR (dbin, STREAM, FAILED,
++        ("Stream %s is not part of any known stream collection",
++            slot->active_stream_id),
++        ("pad %s:%s", GST_DEBUG_PAD_NAME (slot->src_pad)));
++    goto beach;
++  }
+ 
+   /* check if all streams are present for that collection. We do it now since 
we
+    * might just have a single stream in the collection */
+-- 
+GitLab
+
diff --git 
a/gnu/packages/patches/gst-plugins-base-parsebin-wait-for-parser.patch 
b/gnu/packages/patches/gst-plugins-base-parsebin-wait-for-parser.patch
new file mode 100644
index 00000000000..5d72a1f683d
--- /dev/null
+++ b/gnu/packages/patches/gst-plugins-base-parsebin-wait-for-parser.patch
@@ -0,0 +1,51 @@
+From 8aec614e5c05599818cf3689a2139d85bce990dc Mon Sep 17 00:00:00 2001
+From: Edward Hervey <[email protected]>
+Date: Tue, 13 Oct 2026 09:57:39 +0200
+Subject: [PATCH] parsebin: wait for the parser to publish its stream-id before
+ exposing
+
+A chain was declared complete as soon as a parser was plugged, since
+chain->parsed is set at plug time. Parsers create their stream-id
+lazily, on the first data they push, so the exposed pad published a
+stream-collection built from an earlier stream-start and then emitted a
+different one. decodebin3 could not find a collection covering the
+stream and aborted in mq_slot_handle_stream_start().
+
+Require the endpad target to have published a stream-id before rule (c)
+declares the chain complete. Exposure then happens from the block probe
+on that target, once it has produced events, so the collection and the
+stream-start agree by construction.
+
+Part-of: 
<https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/12700>
+---
+ .../gst-plugins-base/gst/playback/gstparsebin.c    | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/gst/playback/gstparsebin.c b/gst/playback/gstparsebin.c
+index 535f91a8bf9..3d073932297 100644
+--- a/gst/playback/gstparsebin.c
++++ b/gst/playback/gstparsebin.c
+@@ -3148,9 +3148,17 @@ gst_parse_chain_is_complete (GstParseChain * chain)
+     }
+   }
+ 
+-  if (chain->parsed) {
+-    complete = TRUE;
+-    goto out;
++  if (chain->parsed && chain->endpad) {
++    /* Plugging a parser is not enough to expose: the parser creates its
++     * stream-id lazily, on the first data it pushes, so a pad exposed here
++     * would publish a stream-collection built from an earlier stream-start
++     * and then emit a different one. The ghost mirrors its target's sticky
++     * events, so wait until the pad we are about to publish knows its own
++     * identity; the block probe on the target triggers exposure once it 
does. */
++    gchar *sid = gst_pad_get_stream_id (GST_PAD (chain->endpad));
++
++    complete = (sid != NULL);
++    g_free (sid);
+   }
+ 
+ out:
+-- 
+GitLab
+

Reply via email to