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

@ -432,9 +432,9 @@ spa_debug_props (const SpaProps *props, bool print_ranges)
fprintf (stderr, "\t: %-12s\n", rinfo->name);
}
}
if (info->info) {
fprintf (stderr, "Info: \n");
spa_debug_dict (info->info);
if (info->extra) {
fprintf (stderr, "Extra info: \n");
spa_debug_dict (info->extra);
}
}
return SPA_RESULT_OK;

View file

@ -62,7 +62,7 @@ spa_port_info_serialize (void *p, const SpaPortInfo *info)
pi->params = SPA_INT_TO_PTR (SPA_PTRDIFF (ap, pi));
else
pi->params = 0;
pi->features = 0;
pi->extra = 0;
p = SPA_MEMBER (ap, sizeof (SpaAllocParam*) * info->n_params, void);