mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-29 11:08:40 -05:00
spa: add result type
We need this to know the type of result, especially when serializing.
This commit is contained in:
parent
c767ce62c9
commit
857b2a0cfb
33 changed files with 110 additions and 73 deletions
|
|
@ -52,14 +52,22 @@ struct data {
|
|||
struct spa_hook listener;
|
||||
};
|
||||
|
||||
static void print_param(void *data, int seq, int res, const void *result)
|
||||
static void print_param(void *data, int seq, int res, uint32_t type, const void *result)
|
||||
{
|
||||
const struct spa_result_node_params *r = result;
|
||||
switch (type) {
|
||||
case SPA_RESULT_TYPE_NODE_PARAMS:
|
||||
{
|
||||
const struct spa_result_node_params *r = result;
|
||||
|
||||
if (spa_pod_is_object_type(r->param, SPA_TYPE_OBJECT_Format))
|
||||
spa_debug_format(16, NULL, r->param);
|
||||
else
|
||||
spa_debug_pod(16, NULL, r->param);
|
||||
if (spa_pod_is_object_type(r->param, SPA_TYPE_OBJECT_Format))
|
||||
spa_debug_format(16, NULL, r->param);
|
||||
else
|
||||
spa_debug_pod(16, NULL, r->param);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue