linux-capture: Fix Ubuntu 21.10 builds

Ubuntu 21.10 provides PipeWire 0.3.32 which is missing the
`SPA_POD_PROP_FLAG_DONT_FIXATE` required for proper DMA-BUF negotiation.
Since this isn't implemented in the DE's of this Ubuntu version just
defining this flag won't have any impact.

Revert after support for Ubuntu 21.10 ended.
master
columbarius 2021-11-28 21:07:57 +01:00 committed by Georges Basile Stavracas Neto
parent 13693bd199
commit 0532a5c1f0
2 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,7 @@ set(linux-capture_LIBRARIES
option(ENABLE_PIPEWIRE "Enable PipeWire support" ON)
if(ENABLE_PIPEWIRE)
find_package(PipeWire 0.3.33 QUIET)
find_package(PipeWire 0.3.32 QUIET)
find_package(Libdrm QUIET) # we require libdrm/drm_fourcc.h to build
find_package(Gio QUIET)

View File

@ -38,6 +38,10 @@
#include <spa/param/video/type-info.h>
#include <spa/utils/result.h>
#ifndef SPA_POD_PROP_FLAG_DONT_FIXATE
#define SPA_POD_PROP_FLAG_DONT_FIXATE (1 << 4)
#endif
#define REQUEST_PATH "/org/freedesktop/portal/desktop/request/%s/obs%u"
#define SESSION_PATH "/org/freedesktop/portal/desktop/session/%s/obs%u"