Add new patch for GstPlayer

This commit is contained in:
Rafostar
2020-11-04 22:20:42 +01:00
parent de7a850cc2
commit 2b11f68723
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
From 5c500284dd8c12a383098d9227a22146d0aa8417 Mon Sep 17 00:00:00 2001
From: Rafostar <rafostar.github@gmail.com>
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

View File

@@ -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"
}
]
}