git: 5161e4351dd8 - main - multimedia/pipewire: Fix startup problem

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 03 Aug 2024 17:25:25 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5161e4351dd81585f2bd8288d6594d2686bbadc4

commit 5161e4351dd81585f2bd8288d6594d2686bbadc4
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-08-03 17:24:35 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-08-03 17:24:35 +0000

    multimedia/pipewire: Fix startup problem
    
    PR:             280504
---
 multimedia/pipewire/Makefile                               |  1 +
 multimedia/pipewire/files/patch-spa_plugins_support_loop.c | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/multimedia/pipewire/Makefile b/multimedia/pipewire/Makefile
index e93b8d82af00..d67d8ecd6e87 100644
--- a/multimedia/pipewire/Makefile
+++ b/multimedia/pipewire/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pipewire
 DISTVERSION=	1.2.1
+PORTREVISION=	1
 CATEGORIES=	multimedia
 
 MAINTAINER=	arrowd@FreeBSD.org
diff --git a/multimedia/pipewire/files/patch-spa_plugins_support_loop.c b/multimedia/pipewire/files/patch-spa_plugins_support_loop.c
new file mode 100644
index 000000000000..d8466bdf91fb
--- /dev/null
+++ b/multimedia/pipewire/files/patch-spa_plugins_support_loop.c
@@ -0,0 +1,11 @@
+--- spa/plugins/support/loop.c.orig	2024-07-12 07:24:23 UTC
++++ spa/plugins/support/loop.c
+@@ -1157,7 +1157,7 @@ impl_init(const struct spa_handle_factory *factory,
+ 		goto error_exit_free_poll;
+ 	}
+ 
+-	if (tss_create(&impl->queue_tss_id, (tss_dtor_t)loop_queue_destroy) != 0) {
++	if (tss_create(&impl->queue_tss_id, (tss_dtor_t)loop_queue_destroy) != thrd_success) {
+ 		res = -errno;
+ 		spa_log_error(impl->log, "%p: can't create tss: %m", impl);
+ 		goto error_exit_free_wakeup;