From 96a6b330294b095455994d87e10561e0a7063df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 26 Oct 2022 18:05:32 +0200 Subject: [PATCH] vacaps: Sort raw caps according their efficiency. Caps negotiations considers template caps order. This patch sets the correct order according the feture caps: VAMemory, DMABuf and SystemMemory. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvacaps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvacaps.c b/subprojects/gst-plugins-bad/sys/va/gstvacaps.c index a8aed03db1..9658e0db54 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvacaps.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvacaps.c @@ -504,12 +504,12 @@ _regroup_raw_caps (GstCaps * caps) va_caps = gst_caps_simplify (va_caps); dma_caps = gst_caps_simplify (dma_caps); - sys_caps = gst_caps_merge (sys_caps, va_caps); - sys_caps = gst_caps_merge (sys_caps, dma_caps); + va_caps = gst_caps_merge (va_caps, dma_caps); + va_caps = gst_caps_merge (va_caps, sys_caps); gst_caps_unref (caps); - return sys_caps; + return va_caps; } gboolean