use dictionary for extra port info

This commit is contained in:
Wim Taymans 2016-10-14 10:42:02 +02:00
parent d79489b29b
commit becae3e7fa
9 changed files with 14 additions and 13 deletions

View file

@ -341,7 +341,7 @@ spa_alsa_sink_node_port_set_format (SpaNode *node,
this->param_buffers.min_buffers = 1;
this->param_buffers.max_buffers = 8;
this->param_buffers.align = 16;
this->info.features = NULL;
this->info.extra = NULL;
this->have_format = true;
update_state (this, SPA_NODE_STATE_READY);

View file

@ -375,7 +375,7 @@ spa_alsa_source_node_port_set_format (SpaNode *node,
this->param_meta.param.type = SPA_ALLOC_PARAM_TYPE_META_ENABLE;
this->param_meta.param.size = sizeof (this->param_meta);
this->param_meta.type = SPA_META_TYPE_HEADER;
this->info.features = NULL;
this->info.extra = NULL;
this->have_format = true;

View file

@ -583,7 +583,7 @@ spa_audiotestsrc_node_port_set_format (SpaNode *node,
this->param_meta.param.type = SPA_ALLOC_PARAM_TYPE_META_ENABLE;
this->param_meta.param.size = sizeof (this->param_meta);
this->param_meta.type = SPA_META_TYPE_HEADER;
this->info.features = NULL;
this->info.extra = NULL;
update_state (this, SPA_NODE_STATE_READY);
}
else

View file

@ -816,7 +816,7 @@ spa_v4l2_set_format (SpaV4l2Source *this, V4l2Format *f, bool try_only)
state->param_meta.param.size = sizeof (state->param_meta);
state->param_meta.type = SPA_META_TYPE_HEADER;
state->info.features = NULL;
state->info.extra = NULL;
return 0;
}

View file

@ -532,7 +532,7 @@ spa_videotestsrc_node_port_set_format (SpaNode *node,
this->param_meta.param.type = SPA_ALLOC_PARAM_TYPE_META_ENABLE;
this->param_meta.param.size = sizeof (this->param_meta);
this->param_meta.type = SPA_META_TYPE_HEADER;
this->info.features = NULL;
this->info.extra = NULL;
update_state (this, SPA_NODE_STATE_READY);
}
else