mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
command: make commands dynamic
Ensure format object type.
This commit is contained in:
parent
4d9f2c5161
commit
c44a7c9735
36 changed files with 549 additions and 604 deletions
|
|
@ -269,7 +269,8 @@ print_pod_value (uint32_t size, uint32_t type, void *body, int prefix)
|
|||
SpaPODObjectBody *b = body;
|
||||
SpaPOD *p;
|
||||
|
||||
printf ("%-*sObject: size %d, id %d, type %d\n", prefix, "", size, b->id, b->type);
|
||||
printf ("%-*sObject: size %d, id %d, type %s\n", prefix, "", size, b->id,
|
||||
spa_id_map_get_uri (spa_id_map_get_default(), b->type));
|
||||
SPA_POD_OBJECT_BODY_FOREACH (b, size, p)
|
||||
print_pod_value (p->size, p->type, SPA_POD_BODY (p), prefix + 2);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ id_map_get_id (SpaIDMap *map, const char *uri)
|
|||
if (strcmp (this->uris[i], uri) == 0)
|
||||
return i;
|
||||
}
|
||||
printf ("spa adding %d %s\n", i, uri);
|
||||
this->uris[i] = (char *)uri;
|
||||
this->n_uris++;
|
||||
}
|
||||
|
|
@ -57,8 +56,6 @@ id_map_get_uri (SpaIDMap *map, uint32_t id)
|
|||
{
|
||||
IDMap *this = SPA_CONTAINER_OF (map, IDMap, map);
|
||||
|
||||
printf ("spa get %d\n", id);
|
||||
|
||||
if (id < this->n_uris)
|
||||
return this->uris[id];
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ spa_format_filter (const SpaFormat *format,
|
|||
filter->body.media_subtype.value != format->body.media_subtype.value)
|
||||
return SPA_RESULT_INVALID_MEDIA_TYPE;
|
||||
|
||||
spa_pod_builder_push_format (result, &f,
|
||||
spa_pod_builder_push_format (result, &f, filter->body.obj_body.type,
|
||||
filter->body.media_type.value,
|
||||
filter->body.media_subtype.value);
|
||||
res = spa_props_filter (result,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue