gst: Sanitize caps before translating

DMABuf caps without concrete formats and modifiers don't map well to the
Pipewire negotiation process.
Introduce a new gst_caps_sanitize() helper function, where such cases
can be handled.
This commit is contained in:
Robert Mader 2024-02-25 17:36:08 +01:00
parent f1b75fc6f8
commit 8a271a87b7
3 changed files with 47 additions and 1 deletions

View file

@ -15,6 +15,8 @@ GPtrArray * gst_caps_to_format_all (GstCaps *caps);
GstCaps * gst_caps_from_format (const struct spa_pod *format);
GstCaps * gst_caps_sanitize (GstCaps *caps);
G_END_DECLS
#endif