waylandsink: memory:DMABuf preferred in caps
Submitted by Fabien Dessenne
Link to original bug (#779132)
Description
Created attachment 346565
waylandsink-memory-DMABuf-preferred-while-negotiation
waylandsink supports both SystemMemory buffers and DMABufMemory buffers. Both are exposed in caps.
If we consider that DMABuf is an optimization, then it is better to have it proposed with a higher priority (=before) than SystemMemory.
Instead of:
video/x-raw, format=(string){ xxx }, ...; video/x-raw(memory:DMABuf), format=(string){ xxx }, ...
Propose:
video/x-raw(memory:DMABuf), format=(string){ xxx }, ...; video/x-raw, format=(string){ xxx }, ...
Hence, when negotiating caps with a DMABuf-compatible upstream element, DMABuf becomes the default choice.
Patch 346565, "waylandsink-memory-DMABuf-preferred-while-negotiation":
0001-waylandsink-memory-DMABuf-preferred-while-negotiatio.patch
Version: 1.11.1