mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
gst: Add helper to fixate DMA_DRM caps
When support for modifier-aware DMA_DRM formats was added in f1b75fc6,
the translation between Pipewire parameters and Gstreamer caps was kept
compatible with the] non-DMA_DRM/legacy API by reporting format/modifier
combinations with linear or invalid modifier both as `format` and
`drm-format`.
In cases when a linear modifier ends up being negotiated, this, however,
resurts in non-fixated caps, preventing the negotiation to succeed.
Add a helper that allows to fixate such caps.
This commit is contained in:
parent
adead74e8c
commit
05b1c9d0c8
2 changed files with 57 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ GstCaps * gst_caps_from_format (const struct spa_pod *format);
|
|||
|
||||
void gst_caps_sanitize (GstCaps **caps);
|
||||
|
||||
void gst_caps_maybe_fixate_dma_format (GstCaps *caps);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue