diff options
author | Chris Robinson <[email protected]> | 2021-10-03 06:48:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-10-03 06:48:00 -0700 |
commit | 53d9033ec70019353dfa255b63cbe9eb21c70888 (patch) | |
tree | 2547f4b737f019a55d078d12253710ff897c1176 /alc/backends | |
parent | 38d3ea35017944929f9d52a1c840ace68846fee9 (diff) |
Remove a couple unnecessary variables
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 0015690b..ec852020 100644 --- a/alc/backends/pipewire.cpp +++ b/alc/backends/pipewire.cpp @@ -1318,8 +1318,7 @@ void PipeWirePlayback::stop() "Failed to stop PipeWire stream (res: %d)", res}; /* Wait for the stream to stop playing. */ - pw_stream_state state{}; - while((state=pw_stream_get_state(mStream.get(), nullptr)) == PW_STREAM_STATE_STREAMING) + while(pw_stream_get_state(mStream.get(), nullptr) == PW_STREAM_STATE_STREAMING) mLoop.wait(); } @@ -1648,8 +1647,7 @@ void PipeWireCapture::stop() throw al::backend_exception{al::backend_error::DeviceError, "Failed to stop PipeWire stream (res: %d)", res}; - pw_stream_state state{}; - while((state=pw_stream_get_state(mStream.get(), nullptr)) == PW_STREAM_STATE_STREAMING) + while(pw_stream_get_state(mStream.get(), nullptr) == PW_STREAM_STATE_STREAMING) mLoop.wait(); } |