audiotestsrc: use macros for parser

This commit is contained in:
Wim Taymans 2019-01-16 17:39:08 +01:00
parent e4bde73552
commit fa2d877925
3 changed files with 9 additions and 9 deletions

View file

@ -167,7 +167,7 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
}
spa_pod_parse_object(param,
SPA_TYPE_OBJECT_Props, NULL,
SPA_PROP_live, "?b", &this->props.live);
SPA_PROP_live, SPA_POD_OPT_Bool(&this->props.live));
if (this->props.live)
this->info.flags |= SPA_PORT_INFO_FLAG_LIVE;