28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
|
From 9e404ad3e5582f3d4a2f567b1c30e43cdbbb273c Mon Sep 17 00:00:00 2001
|
||
|
From: Aleix Pol <aleixpol@kde.org>
|
||
|
Date: Tue, 21 Sep 2021 19:34:32 +0200
|
||
|
Subject: [PATCH 08/11] pipewire: Properly compare pipewire versions using
|
||
|
QVersionNumber
|
||
|
|
||
|
(cherry picked from commit 393af3c1b74ad890ea2202652e76e89e1d63debd)
|
||
|
---
|
||
|
libtaskmanager/declarative/pipewiresourcestream.cpp | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/libtaskmanager/declarative/pipewiresourcestream.cpp b/libtaskmanager/declarative/pipewiresourcestream.cpp
|
||
|
index b3aa92084..568ba589b 100644
|
||
|
--- a/libtaskmanager/declarative/pipewiresourcestream.cpp
|
||
|
+++ b/libtaskmanager/declarative/pipewiresourcestream.cpp
|
||
|
@@ -139,7 +139,7 @@ static spa_pod *buildFormat(spa_pod_builder *builder, spa_video_format format, c
|
||
|
auto pw_version = QVersionNumber::fromString(pw_get_library_version());
|
||
|
|
||
|
// SPA_POD_PROP_FLAG_DONT_FIXATE can be used with PipeWire >= 0.3.33
|
||
|
- if (pw_version.majorVersion() >= 0 && pw_version.minorVersion() >= 3 && pw_version.microVersion() >= 33) {
|
||
|
+ if (pw_version >= QVersionNumber(0, 3, 33)) {
|
||
|
spa_pod_builder_prop(builder, SPA_FORMAT_VIDEO_modifier, SPA_POD_PROP_FLAG_MANDATORY | SPA_POD_PROP_FLAG_DONT_FIXATE);
|
||
|
} else {
|
||
|
spa_pod_builder_prop(builder, SPA_FORMAT_VIDEO_modifier, SPA_POD_PROP_FLAG_MANDATORY);
|
||
|
--
|
||
|
2.33.0
|
||
|
|