mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
doc: tutorial3: do not return anything from roundtrip()
The return value was constant 0 and it was not used by the caller.
This commit is contained in:
parent
94d405be3b
commit
606e0dcdab
1 changed files with 1 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ static void on_core_done(void *data, uint32_t id, int seq)
|
||||||
pw_main_loop_quit(d->loop);
|
pw_main_loop_quit(d->loop);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int roundtrip(struct pw_core *core, struct pw_main_loop *loop)
|
static void roundtrip(struct pw_core *core, struct pw_main_loop *loop)
|
||||||
{
|
{
|
||||||
static const struct pw_core_events core_events = {
|
static const struct pw_core_events core_events = {
|
||||||
PW_VERSION_CORE_EVENTS,
|
PW_VERSION_CORE_EVENTS,
|
||||||
|
|
@ -38,7 +38,6 @@ static int roundtrip(struct pw_core *core, struct pw_main_loop *loop)
|
||||||
pw_main_loop_run(loop);
|
pw_main_loop_run(loop);
|
||||||
|
|
||||||
spa_hook_remove(&core_listener);
|
spa_hook_remove(&core_listener);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
/* [roundtrip] */
|
/* [roundtrip] */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue