diff options
author | Chris Robinson <[email protected]> | 2023-12-06 16:06:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-06 16:06:08 -0800 |
commit | a7fdf196ac182680ef4a613571d8f0a7844cfc15 (patch) | |
tree | 6c0bf09fa081a2de1b115e74256e24bee25d10a3 /alc/backends | |
parent | bab3a1c9f517446f6175815f1e943b5035747fda (diff) |
Don't throw from the pipewire backend stop method
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/pipewire.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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; }); |