diff --git a/pkgs/flatpak/gstreamer-1.0/gst-plugins-bad-gstplayer-ref-sink.patch b/pkgs/flatpak/gstreamer-1.0/gst-plugins-bad-gstplayer-ref-sink.patch new file mode 100644 index 00000000..bd924740 --- /dev/null +++ b/pkgs/flatpak/gstreamer-1.0/gst-plugins-bad-gstplayer-ref-sink.patch @@ -0,0 +1,26 @@ +From 5c500284dd8c12a383098d9227a22146d0aa8417 Mon Sep 17 00:00:00 2001 +From: Rafostar +Date: Wed, 4 Nov 2020 21:16:42 +0100 +Subject: [PATCH] GstPlayer: call ref_sink on pipeline + +As discussed in #1450 +--- + gst-libs/gst/player/gstplayer.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/gst-libs/gst/player/gstplayer.c b/gst-libs/gst/player/gstplayer.c +index b2e318fc3..04148fa1d 100644 +--- a/gst-libs/gst/player/gstplayer.c ++++ b/gst-libs/gst/player/gstplayer.c +@@ -2907,6 +2907,8 @@ gst_player_main (gpointer data) + g_assert_not_reached (); + } + ++ gst_object_ref_sink (self->playbin); ++ + if (self->video_renderer) { + GstElement *video_sink = + gst_player_video_renderer_create_video_sink (self->video_renderer, +-- +2.26.2 + diff --git a/pkgs/flatpak/gstreamer-1.0/gst-plugins-bad.json b/pkgs/flatpak/gstreamer-1.0/gst-plugins-bad.json index 45abfe8e..04b948ab 100644 --- a/pkgs/flatpak/gstreamer-1.0/gst-plugins-bad.json +++ b/pkgs/flatpak/gstreamer-1.0/gst-plugins-bad.json @@ -24,6 +24,10 @@ "url": "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad.git", "tag": "1.18.1", "commit": "e5c3c106a2da607953fea36e3a253b382c939684" + }, + { + "type": "patch", + "path": "gst-plugins-bad-gstplayer-ref-sink.patch" } ] }