mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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
6c7dabb1e7
commit
3cc0a405b2
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue