aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2022-12-07 21:00:57 +1300
committerMatthew Gregan <[email protected]>2022-12-08 09:24:26 +1300
commiteb8c4ff0605e304ccdf839a22d89312e152ad914 (patch)
treeded15a8362abef2c1bbfdc88886e5b7816cf9405
parent784f4d7e3fcea486708b1f81e7efcef6860a6ab4 (diff)
downloadcubeb-eb8c4ff0605e304ccdf839a22d89312e152ad914.tar.gz
cubeb-eb8c4ff0605e304ccdf839a22d89312e152ad914.zip
wasapi: Fix default device change filtering logic.
-rw-r--r--src/cubeb_wasapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp
index 611efbe..14ae226 100644
--- a/src/cubeb_wasapi.cpp
+++ b/src/cubeb_wasapi.cpp
@@ -708,7 +708,7 @@ public:
LOG("endpoint: Audio device default changed.");
/* we only support a single stream type for now. */
- if (flow != eRender && role != this->role) {
+ if (flow != eRender || role != this->role) {
return S_OK;
}