mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
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:
parent
f1b75fc6f8
commit
8a271a87b7
3 changed files with 47 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue