From a7fdf196ac182680ef4a613571d8f0a7844cfc15 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 6 Dec 2023 16:06:08 -0800 Subject: Don't throw from the pipewire backend stop method --- alc/backends/pipewire.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'alc') diff --git a/alc/backends/pipewire.cpp b/alc/backends/pipewire.cpp index adf9d62a..01896b01 100644 --- a/alc/backends/pipewire.cpp +++ b/alc/backends/pipewire.cpp @@ -1791,8 +1791,7 @@ void PipeWirePlayback::stop() { MainloopUniqueLock plock{mLoop}; if(int res{pw_stream_set_active(mStream.get(), false)}) - throw al::backend_exception{al::backend_error::DeviceError, - "Failed to stop PipeWire stream (res: %d)", res}; + ERR("Failed to stop PipeWire stream (res: %d)\n", res); /* Wait for the stream to stop playing. */ plock.wait([stream=mStream.get()]() @@ -2145,8 +2144,7 @@ void PipeWireCapture::stop() { MainloopUniqueLock plock{mLoop}; if(int res{pw_stream_set_active(mStream.get(), false)}) - throw al::backend_exception{al::backend_error::DeviceError, - "Failed to stop PipeWire stream (res: %d)", res}; + ERR("Failed to stop PipeWire stream (res: %d)\n", res); plock.wait([stream=mStream.get()]() { return pw_stream_get_state(stream, nullptr) != PW_STREAM_STATE_STREAMING; }); -- cgit v1.2.3