mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
videoconvert: Enumerate follower params better
Make sure we increment the next counter even when we are in passthrough mode or the property is not readable.
This commit is contained in:
parent
faf5ae0c2f
commit
14eb03a821
2 changed files with 31 additions and 22 deletions
|
|
@ -142,19 +142,23 @@ static int follower_enum_params(struct impl *this,
|
|||
struct spa_pod_builder *builder)
|
||||
{
|
||||
int res;
|
||||
if (result->next < 0x100000 &&
|
||||
this->follower != this->target) {
|
||||
if ((res = node_enum_params_sync(this, this->target,
|
||||
id, &result->next, filter, &result->param, builder)) == 1)
|
||||
return res;
|
||||
if (result->next < 0x100000) {
|
||||
if (this->follower != this->target &&
|
||||
this->convert_params_flags[idx] & SPA_PARAM_INFO_READ) {
|
||||
if ((res = node_enum_params_sync(this, this->target,
|
||||
id, &result->next, filter, &result->param, builder)) == 1)
|
||||
return res;
|
||||
}
|
||||
result->next = 0x100000;
|
||||
}
|
||||
if (result->next < 0x200000 && this->follower_params_flags[idx] & SPA_PARAM_INFO_READ) {
|
||||
result->next &= 0xfffff;
|
||||
if ((res = node_enum_params_sync(this, this->follower,
|
||||
id, &result->next, filter, &result->param, builder)) == 1) {
|
||||
result->next |= 0x100000;
|
||||
return res;
|
||||
if (result->next < 0x200000) {
|
||||
if (this->follower_params_flags[idx] & SPA_PARAM_INFO_READ) {
|
||||
result->next &= 0xfffff;
|
||||
if ((res = node_enum_params_sync(this, this->follower,
|
||||
id, &result->next, filter, &result->param, builder)) == 1) {
|
||||
result->next |= 0x100000;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
result->next = 0x200000;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue