summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-vaapsink-downgrade-to-marginal.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-vaapsink-downgrade-to-marginal.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-vaapsink-downgrade-to-marginal.patch
new file mode 100644
index 0000000000..c861f3bed2
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-vaapsink-downgrade-to-marginal.patch
@@ -0,0 +1,46 @@
1From 0c28cf7bfa90f8947833722cddf23d513490c6c3 Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anuj.mittal@intel.com>
3Date: Wed, 28 Nov 2018 15:08:48 +0800
4Subject: [PATCH] vaapsink: downgrade to marginal
5
6Using vaapisink with default poky configuration results in an
7unresponsive display as of today because DRI2 rendering is currently broken
8in non composited environments [1] and libva doesn't support DRI3 [2].
9
10Downgrade vaapisink to marginal for now so playbin (and in turn gst-play
11and gtk-play examples) use xvimagesink or others out of box.
12
13[1] https://gitlab.freedesktop.org/xorg/xserver/issues/13
14[2] https://github.com/intel/libva/issues/122
15
16Upstream-Status: Pending
17
18Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
19---
20 gst/vaapi/gstvaapi.c | 6 +-----
21 1 file changed, 1 insertion(+), 5 deletions(-)
22
23diff --git a/gst/vaapi/gstvaapi.c b/gst/vaapi/gstvaapi.c
24index 9a82454..4d94f2b 100644
25--- a/gst/vaapi/gstvaapi.c
26+++ b/gst/vaapi/gstvaapi.c
27@@ -210,7 +210,6 @@ plugin_init (GstPlugin * plugin)
28 {
29 GstVaapiDisplay *display;
30 GArray *decoders;
31- guint rank;
32
33 plugin_add_dependencies (plugin);
34
35@@ -235,10 +234,7 @@ plugin_init (GstPlugin * plugin)
36 gst_element_register (plugin, "vaapidecodebin",
37 GST_RANK_PRIMARY + 2, GST_TYPE_VAAPI_DECODE_BIN);
38
39- rank = GST_RANK_PRIMARY;
40- if (g_getenv ("WAYLAND_DISPLAY"))
41- rank = GST_RANK_MARGINAL;
42- gst_element_register (plugin, "vaapisink", rank, GST_TYPE_VAAPISINK);
43+ gst_element_register (plugin, "vaapisink", GST_RANK_MARGINAL, GST_TYPE_VAAPISINK);
44
45 #if USE_ENCODERS
46 gst_vaapiencode_register (plugin, display);