summaryrefslogtreecommitdiff
path: root/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-glupload-don-t-reject-non-RGBA-output-format-in-_dir.patch
blob: 5dc7b66a5b07af942a69d2dbf6aecb37f2a961a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From e6aa0007d90071dc5405ac2188134c231b82ec88 Mon Sep 17 00:00:00 2001
From: Zan Dobersek <zdobersek@igalia.com>
Date: Fri, 11 Mar 2022 15:50:23 +0100
Subject: [PATCH] glupload: don't reject non-RGBA output format in
 _directviv_upload_accept

In case of a more advanced sink that can support RGBA but also different YUV
formats, the initial output format for the glupload element might not be RGBA.
In that case, rejecting inside the upload method for the DirectVIV uploader
means picking a different uploader that won't do the job properly.

If the rejecetion is removed, the upload proceeds and the pipeline is later
reconfigured so that the DirectVIV uploader's RGBA-only output is respected,
meaning the final sink will also move over from handling I420 to RGBA.

Upstream-Status: pending

Signed-off-by: Zan Dobersek <zdobersek@igalia.com>
Signed-off-by: Ming Liu <ming.liu@toradex.com>
---
 gst-libs/gst/gl/gstglupload.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c
index 78b65c1cc..9ae5e7f97 100644
--- a/gst-libs/gst/gl/gstglupload.c
+++ b/gst-libs/gst/gl/gstglupload.c
@@ -1845,10 +1845,6 @@ _directviv_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
 
 #if GST_GL_HAVE_PHYMEM
   GstVideoInfo *in_info = &directviv->upload->priv->in_info;
-  GstVideoFormat fmt =
-      GST_VIDEO_INFO_FORMAT (&directviv->upload->priv->out_info);
-  if (fmt != GST_VIDEO_FORMAT_RGBA)
-    return FALSE;
 
   if (n_mem != 1 || !mem || !gst_is_phys_memory (mem)) {
     GstVideoFrame frame1, frame2;
-- 
2.25.1