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.
This commit is contained in:
Wim Taymans 2022-09-06 19:06:10 +02:00
parent e9b7667b55
commit 32421965c7

View file

@ -1940,7 +1940,8 @@ pw_stream_connect(struct pw_stream *stream,
pw_properties_set(props, "channelmix.normalize", "true"); 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"); factory = pw_context_find_factory(impl->context, "adapter");
if (factory == NULL) { if (factory == NULL) {
pw_log_error("%p: no adapter factory found", stream); pw_log_error("%p: no adapter factory found", stream);