reorganize some struct members to remove holes

This commit is contained in:
Wim Taymans 2019-02-08 12:01:50 +01:00
parent 658c1da52f
commit f45e0b8966
27 changed files with 533 additions and 539 deletions

View file

@ -806,10 +806,7 @@ static const struct spa_dict_item info_items[] = {
{ "factory.description", "Play audio with the alsa API" },
};
static const struct spa_dict info = {
info_items,
SPA_N_ELEMENTS(info_items),
};
static const struct spa_dict info = SPA_DICT_INIT_ARRAY(info_items);
const struct spa_handle_factory spa_alsa_sink_factory = {
SPA_VERSION_HANDLE_FACTORY,

View file

@ -816,10 +816,7 @@ static const struct spa_dict_item info_items[] = {
{ "factory.description", "Record audio with the alsa API" },
};
static const struct spa_dict info = {
info_items,
SPA_N_ELEMENTS(info_items)
};
static const struct spa_dict info = SPA_DICT_INIT_ARRAY(info_items);
const struct spa_handle_factory spa_alsa_source_factory = {
SPA_VERSION_HANDLE_FACTORY,

View file

@ -1108,10 +1108,7 @@ static const struct spa_dict_item info_items[] = {
{ "factory.description", "Generate an audio test pattern" },
};
static const struct spa_dict info = {
info_items,
SPA_N_ELEMENTS(info_items)
};
static const struct spa_dict info = SPA_DICT_INIT_ARRAY(info_items);
const struct spa_handle_factory spa_audiotestsrc_factory = {
SPA_VERSION_HANDLE_FACTORY,

View file

@ -1421,10 +1421,7 @@ static const struct spa_dict_item info_items[] = {
{ "factory.description", "Play audio with the a2dp" },
};
static const struct spa_dict info = {
info_items,
SPA_N_ELEMENTS(info_items),
};
static const struct spa_dict info = SPA_DICT_INIT_ARRAY(info_items);
struct spa_handle_factory spa_a2dp_sink_factory = {
SPA_VERSION_HANDLE_FACTORY,

View file

@ -982,10 +982,7 @@ static const struct spa_dict_item info_items[] = {
{ "factory.description", "Generate a video test pattern" },
};
static const struct spa_dict info = {
info_items,
SPA_N_ELEMENTS(info_items)
};
static const struct spa_dict info = SPA_DICT_INIT_ARRAY(info_items);
const struct spa_handle_factory spa_videotestsrc_factory = {
SPA_VERSION_HANDLE_FACTORY,