From 96ebecb7ed8a07841d191a27cf247ffb666a2be8 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 21 Sep 2021 13:10:04 +0200 Subject: [PATCH 09/11] PipeWire: Include defines for older PipeWire versions SPA_POD_PROP_FLAG_MANDATORY and SPA_POD_PROP_FLAG_DONT_FIXATE got included in newer versions. (cherry picked from commit 38f8c397c72c331d202b9586e5077f281b9e3293) --- libtaskmanager/declarative/pipewiresourcestream.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libtaskmanager/declarative/pipewiresourcestream.cpp b/libtaskmanager/declarative/pipewiresourcestream.cpp index 568ba589b..b4c2fdc4f 100644 --- a/libtaskmanager/declarative/pipewiresourcestream.cpp +++ b/libtaskmanager/declarative/pipewiresourcestream.cpp @@ -32,6 +32,13 @@ #include #undef Status +#if !PW_CHECK_VERSION(0, 3, 29) +#define SPA_POD_PROP_FLAG_MANDATORY (1u << 3) +#endif +#if !PW_CHECK_VERSION(0, 3, 33) +#define SPA_POD_PROP_FLAG_DONT_FIXATE (1u << 4) +#endif + static uint32_t SpaPixelFormatToDrmFormat(uint32_t spa_format) { switch (spa_format) { -- 2.33.0