mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -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
|
|
@ -134,6 +134,9 @@ static void do_quit(void *userdata, int signal_number)
|
|||
static int dump_filter(struct data *data)
|
||||
{
|
||||
data->loop = pw_main_loop_new(NULL);
|
||||
if (data->loop == NULL)
|
||||
return -errno;
|
||||
|
||||
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