stream: wrap video streams with adapter node

This commit is contained in:
columbarius 2023-08-31 01:34:21 +02:00
parent d435a36a9f
commit 29bcebe4fe

View file

@ -2077,7 +2077,8 @@ pw_stream_connect(struct pw_stream *stream,
pw_properties_set(props, PW_KEY_PORT_IGNORE_LATENCY, "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);