From 9975905fafcf49c829e7b79cd66e9da3aab509a8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 9 Mar 2022 14:29:00 +0100 Subject: [PATCH] output/PipeWire: initialize field "stream" in Open() Must be initialized for the check in SetVolume(). --- NEWS | 2 ++ src/output/plugins/PipeWireOutputPlugin.cxx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index a78b30fa0..fb4591849 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ ver 0.23.6 (not yet released) * decoder - opus: fix "readpicture" on Opus files +* output + - pipewire: fix crash bug if setting volume before playback starts ver 0.23.5 (2021/12/01) * protocol diff --git a/src/output/plugins/PipeWireOutputPlugin.cxx b/src/output/plugins/PipeWireOutputPlugin.cxx index 02f66cddb..bf5155a5b 100644 --- a/src/output/plugins/PipeWireOutputPlugin.cxx +++ b/src/output/plugins/PipeWireOutputPlugin.cxx @@ -336,6 +336,8 @@ PipeWireOutput::Enable() throw MakeErrno("pw_thread_loop_new() failed"); pw_thread_loop_start(thread_loop); + + stream = nullptr; } void