mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
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:
parent
db450689db
commit
96a6b33029
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue