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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3349>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-10-26 18:05:32 +02:00 committed by GStreamer Marge Bot
parent db450689db
commit 96a6b33029

View file

@ -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