stream: enable videoadapter in all cases

It works fine without an explicitly selected converter.
This commit is contained in:
Wim Taymans 2024-09-06 12:25:20 +02:00
parent 7b30e515be
commit b57375ba85

View file

@ -2059,9 +2059,8 @@ pw_stream_connect(struct pw_stream *stream,
if (pw_properties_get(props, PW_KEY_PORT_GROUP) == NULL)
pw_properties_set(props, PW_KEY_PORT_GROUP, "stream.0");
if (impl->media_type == SPA_MEDIA_TYPE_audio
|| (impl->media_type == SPA_MEDIA_TYPE_video
&& pw_properties_get(props, "video.adapt.converter"))) {
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);