summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2021-02-24 19:14:42 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-02-25 12:05:19 +0000
commita9211a50670acf44981f6a8037401b11e454d485 (patch)
treefc9f5f6148729903759aa0ad2f3859d30713de92
parent87fe2e321e595f83faf8b40e9a4ab5d8140c140e (diff)
downloadgstreamer-plugins-bad-a9211a50670acf44981f6a8037401b11e454d485.tar.gz
va: allocator: No need of fourcc to create surface.
In commits 430aa327 and a119a940 there are a regression since it is possible to create surfaces without fourcc, only chroma (rtformat) is required. This regression is shown on radeonsi driver with certain color formats. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2035>
-rw-r--r--sys/va/gstvaallocator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/va/gstvaallocator.c b/sys/va/gstvaallocator.c
index 9ef3b891a..6138e2e7a 100644
--- a/sys/va/gstvaallocator.c
+++ b/sys/va/gstvaallocator.c
@@ -1394,7 +1394,7 @@ gst_va_allocator_alloc (GstAllocator * allocator)
self = GST_VA_ALLOCATOR (allocator);
- if (self->fourcc == 0 || self->rt_format == 0) {
+ if (self->rt_format == 0) {
GST_ERROR_OBJECT (self, "Unknown fourcc or chroma format");
return NULL;
}
@@ -1666,7 +1666,7 @@ gst_va_buffer_create_aux_surface (GstBuffer * buffer)
} else if (GST_IS_VA_ALLOCATOR (mem->allocator)) {
GstVaAllocator *self = GST_VA_ALLOCATOR (mem->allocator);
- if (self->fourcc == 0 || self->rt_format == 0) {
+ if (self->rt_format == 0) {
GST_ERROR_OBJECT (self, "Unknown fourcc or chroma format");
return FALSE;
}