mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Revert "audioadapter: only accept PortConfig for the adapter direction"
This reverts commit 5bda4b6a57.
The reason is that when you use a null-audio-sink as a source, the
adapter will think it's a sink while wireplumber will try to use it as a
source.
There is no quick solution for this so revert this check for now.
This commit is contained in:
parent
45235172c8
commit
bccd33c4ab
1 changed files with 1 additions and 3 deletions
|
|
@ -641,9 +641,6 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
SPA_PARAM_PORT_CONFIG_format, SPA_POD_OPT_Pod(&format)) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (dir != this->direction)
|
||||
return -EINVAL;
|
||||
|
||||
if (format) {
|
||||
struct spa_audio_info info;
|
||||
|
||||
|
|
@ -682,6 +679,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case SPA_PARAM_Props:
|
||||
if (this->target != this->follower)
|
||||
res = spa_node_set_param(this->target, id, flags, param);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue