mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
don't crash with missing libraries
This commit is contained in:
parent
217f93a317
commit
1f2cb7ac67
4 changed files with 15 additions and 2 deletions
|
|
@ -240,6 +240,10 @@ int main(int argc, char *argv[])
|
|||
data.opt_type = argv[optind++];
|
||||
|
||||
data.loop = pw_main_loop_new(NULL);
|
||||
if (data.loop == NULL) {
|
||||
fprintf(stderr, "can't create mainloop: %m\n");
|
||||
return -1;
|
||||
}
|
||||
pw_loop_add_signal(pw_main_loop_get_loop(data.loop), SIGINT, do_quit, &data);
|
||||
pw_loop_add_signal(pw_main_loop_get_loop(data.loop), SIGTERM, do_quit, &data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue