mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
stream: conditionally wrap video streams with adapter node
If the property video.adapt.videoconverter is set the video stream will be wrapped with the videoadapter from the videoconvert spa plugin. This allows testing the videoadapter and videoconverters while preserving the current behaviour. Later the chack for this property can be dropped.
This commit is contained in:
parent
805e5cf9c1
commit
324ec9df15
1 changed files with 3 additions and 1 deletions
|
|
@ -2096,7 +2096,9 @@ 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
|
||||
&& pw_properties_get(props, "video.adapt.converter"))) {
|
||||
factory = pw_context_find_factory(impl->context, "adapter");
|
||||
if (factory == NULL) {
|
||||
pw_log_error("%p: no adapter factory found", stream);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue