aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/pipewire.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-15 18:30:42 -0800
committerChris Robinson <[email protected]>2022-02-15 18:30:42 -0800
commitfba14feab7783d9c246dd674d0cf0e26010c69d1 (patch)
tree55c6b290f56fe0ad42c8b8525ce9b28d2d170998 /alc/backends/pipewire.cpp
parentff54ed0fced021c5c1cd5e96e7c798d6129147ad (diff)
Don't trace ignored pipewire stream nodes
Diffstat (limited to 'alc/backends/pipewire.cpp')
-rw-r--r--alc/backends/pipewire.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/alc/backends/pipewire.cpp b/alc/backends/pipewire.cpp
index 71fdf768..147a6489 100644
--- a/alc/backends/pipewire.cpp
+++ b/alc/backends/pipewire.cpp
@@ -744,6 +744,7 @@ constexpr auto MonitorPrefixLen = al::size(MonitorPrefix) - 1;
constexpr char AudioSinkClass[]{"Audio/Sink"};
constexpr char AudioSourceClass[]{"Audio/Source"};
constexpr char AudioDuplexClass[]{"Audio/Duplex"};
+constexpr char StreamClass[]{"Stream/"};
/* A generic PipeWire node proxy object used to track changes to sink and
* source nodes.
@@ -1056,7 +1057,8 @@ void EventManager::addCallback(uint32_t id, uint32_t, const char *type, uint32_t
|| al::strcasecmp(media_class, AudioDuplexClass) == 0};
if(!isGood)
{
- if(std::strstr(media_class, "/Video") == nullptr)
+ if(std::strstr(media_class, "/Video") == nullptr
+ && std::strncmp(media_class, StreamClass, sizeof(StreamClass)-1) != 0)
TRACE("Ignoring node class %s\n", media_class);
return;
}