abbec90e7e
Importing a DMA-BUF can fail even if the renderer announces support for the used format modifier pair. This can be caused by a number of reasons specific to the underlying hardware and api [1]. In that case we want to remove that modifier from our list of supported ones and renegotiate. This feature was added in PipeWire 0.3.40. On previous versions the best we can do is drop all modifiers an fallback to DMA-BUF with another format or directly to the SHM buffer transport. This mechanism is demonstrated in [2]. [1] https://xdc2020.x.org/event/9/contributions/615/attachments/704/1301/XDC_2020__Allocation_Constraints.pdf [2] https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/src/examples/video-play-fixate.c