mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
doc: tutorial3: do not spa_zero() the hook objects
`spa_hook_list_append()` zeroes the hooks when they are inserted into the list of hooks.
This commit is contained in:
parent
bb0cda3d94
commit
f61bb3aef5
2 changed files with 1 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ Let's take a look at what this method does.
|
|||
|
||||
\code{.c}
|
||||
struct spa_hook core_listener;
|
||||
spa_zero(core_listener);
|
||||
|
||||
pw_core_add_listener(core, &core_listener,
|
||||
&core_events, NULL);
|
||||
\endcode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue