graph: use spa_node as implementation

Always use a spa_node as the graph implementation, implementing the
methods is just as easy.
Plug some mem leaks in remote
This commit is contained in:
Wim Taymans 2017-08-27 12:12:14 +02:00
parent 6953642ed5
commit 577f86be0d
16 changed files with 167 additions and 206 deletions

View file

@ -107,7 +107,7 @@ static void handle_events(struct data *data)
while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_QUIT:
exit(0);
data->running = false;
break;
}
}
@ -487,10 +487,13 @@ int main(int argc, char *argv[])
pw_loop_enter(data.loop);
while (data.running) {
pw_loop_iterate(data.loop, -1);
pw_loop_iterate(data.loop, 100);
}
pw_loop_leave(data.loop);
pw_link_destroy(data.link);
pw_node_destroy(data.node);
pw_core_destroy(data.core);
pw_loop_destroy(data.loop);
return 0;