diff options
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-glupload-don-t-reject-non-RGBA-output-format-in-_dir.patch')
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-glupload-don-t-reject-non-RGBA-output-format-in-_dir.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-glupload-don-t-reject-non-RGBA-output-format-in-_dir.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-glupload-don-t-reject-non-RGBA-output-format-in-_dir.patch new file mode 100644 index 0000000..5dc7b66 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-glupload-don-t-reject-non-RGBA-output-format-in-_dir.patch @@ -0,0 +1,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 + |