From 32421965c79a2f0fa64f2dde5fda8dcfd5ecea1b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 6 Sep 2022 19:06:10 +0200 Subject: [PATCH] stream: add a video adapter for video streams The vidweo adapter is in passthrough but allows us to query the node for the formats, which then show up in pw-top. --- src/pipewire/stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index 89c2794e2..d7e43d790 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -1940,7 +1940,8 @@ pw_stream_connect(struct pw_stream *stream, pw_properties_set(props, "channelmix.normalize", "true"); } - if (impl->media_type == SPA_MEDIA_TYPE_audio) { + if (impl->media_type == SPA_MEDIA_TYPE_audio || + impl->media_type == SPA_MEDIA_TYPE_video) { factory = pw_context_find_factory(impl->context, "adapter"); if (factory == NULL) { pw_log_error("%p: no adapter factory found", stream);