Commit 5a455af0 authored by Hanspeter Portner's avatar Hanspeter Portner

Merge commit '69be9281'

parents 2d78e92a 69be9281
Pipeline #40320396 passed with stages
in 8 minutes and 51 seconds
......@@ -53,6 +53,7 @@ struct _props_def_t {
const char *type;
const char *access;
size_t offset;
bool hidden;
uint32_t max_size;
props_event_cb_t event_cb;
......@@ -378,7 +379,7 @@ _props_impl_restore(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
_props_impl_unlock(impl, PROP_STATE_NONE);
if(*ref)
if(*ref && !impl->def->hidden)
*ref = _props_patch_set(props, forge, frames, impl, 0);
const props_def_t *def = impl->def;
......@@ -604,7 +605,7 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
{
props_impl_t *impl = &props->impls[i];
if(*ref)
if(*ref && !impl->def->hidden)
*ref = _props_patch_set(props, forge, frames, impl, sequence_num);
}
......@@ -616,17 +617,20 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
if(impl)
{
if(*ref && !impl->def->hidden)
*ref = _props_patch_set(props, forge, frames, impl, sequence_num);
return 1;
}
else if(sequence_num)
{
if(*ref)
*ref = _props_patch_error(props, forge, frames, sequence_num);
}
}
else if(sequence_num)
{
if(*ref)
*ref = _props_patch_error(props, forge, frames, sequence_num);
}
}
......@@ -662,6 +666,7 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
{
if(sequence_num)
{
if(ref)
*ref = _props_patch_error(props, forge, frames, sequence_num);
}
......@@ -680,6 +685,7 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
if(sequence_num)
{
if(*ref)
*ref = _props_patch_ack(props, forge, frames, sequence_num);
}
......@@ -687,6 +693,7 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
}
else if(sequence_num)
{
if(*ref)
*ref = _props_patch_error(props, forge, frames, sequence_num);
}
}
......@@ -720,6 +727,7 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
{
if(sequence_num)
{
if(*ref)
*ref = _props_patch_error(props, forge, frames, sequence_num);
}
......@@ -745,6 +753,7 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
if(sequence_num)
{
if(*ref)
*ref = _props_patch_ack(props, forge, frames, sequence_num);
}
......@@ -764,7 +773,7 @@ props_set(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
{
_props_impl_stash(props, impl);
if(*ref) //TODO use patch:sequenceNumber
if(*ref && !impl->def->hidden) //TODO use patch:sequenceNumber
*ref = _props_patch_set(props, forge, frames, impl, 0);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment