mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00:00
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:
parent
da1dbc1120
commit
0b3a27b208
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue