pw-mon: fix type confusion in core event handler

All pw_core event handlers (`on_core_*()`) currently receive a pointer
to `struct data`, not `struct proxy_data`; as can be seen from the
`pw_core_add_listener()` call in `main()`.

Fixes: cacdcc1b62 ("pw-mon: add filter param to hide props and/or params")
Fixes #3997
This commit is contained in:
Barnabás Pőcze 2024-05-03 03:25:36 +02:00 committed by Wim Taymans
parent da1dbc1120
commit 0b3a27b208

View file

@ -203,10 +203,10 @@ static void print_properties(const struct spa_dict *props, bool use_prefix)
static void on_core_info(void *_data, const struct pw_core_info *info)
{
struct proxy_data *data = _data;
struct data *data = _data;
bool hide_props, print_mark = true;
hide_props = data->data->hide_props;
hide_props = data->hide_props;
printf("\ttype: %s\n", PW_TYPE_INTERFACE_Core);
printf("\tcookie: %u\n", info->cookie);