From 33d493f785b82e73f92754e3970bc8fd728de6ce Mon Sep 17 00:00:00 2001 From: z411 Date: Fri, 5 May 2023 03:13:27 -0400 Subject: [PATCH] Backport pipewire segfault fix for Mumble 1.4.x --- srcpkgs/mumble/patches/pipewire-fix.patch | 22 ++++++++++++++++++++++ srcpkgs/mumble/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/mumble/patches/pipewire-fix.patch diff --git a/srcpkgs/mumble/patches/pipewire-fix.patch b/srcpkgs/mumble/patches/pipewire-fix.patch new file mode 100644 index 000000000000..bcc2f11fe8e3 --- /dev/null +++ b/srcpkgs/mumble/patches/pipewire-fix.patch @@ -0,0 +1,22 @@ +diff --git a/src/mumble/PipeWire.cpp b/src/mumble/PipeWire.cpp +index 91924e4fb..c206ab5bb 100644 +--- a/src/mumble/PipeWire.cpp ++++ b/src/mumble/PipeWire.cpp +@@ -213,13 +213,14 @@ PipeWireEngine::~PipeWireEngine() { + return; + } + ++ if (m_stream) { ++ pws->pw_stream_destroy(m_stream); ++ } ++ + if (m_thread) { + pws->pw_thread_loop_destroy(m_thread); + } + +- if (m_stream) { +- pws->pw_stream_destroy(m_stream); +- } + + if (m_loop) { + pws->pw_loop_destroy(m_loop); diff --git a/srcpkgs/mumble/template b/srcpkgs/mumble/template index acb6af454e0f..35c2728c74ce 100644 --- a/srcpkgs/mumble/template +++ b/srcpkgs/mumble/template @@ -1,7 +1,7 @@ # Template file for 'mumble' pkgname=mumble version=1.4.287 -revision=2 +revision=3 build_style=cmake make_cmd=make configure_args="-Doverlay-xcompile=OFF -Dbundled-opus=OFF