From ffabf78cb70e7a504becc6d104eb47e00077834b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 17 Feb 2022 04:43:47 +0100 Subject: [PATCH] pipewire: module-x11-bell: check source creation --- src/modules/module-x11-bell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/module-x11-bell.c b/src/modules/module-x11-bell.c index 2a4a146b1..22b53e4bb 100644 --- a/src/modules/module-x11-bell.c +++ b/src/modules/module-x11-bell.c @@ -180,6 +180,8 @@ static int x11_connect(struct impl *impl, const char *name) impl->source = pw_loop_add_io(impl->loop, ConnectionNumber(impl->display), SPA_IO_IN, false, display_io, impl); + if (!impl->source) + return -errno; major = XkbMajorVersion; minor = XkbMinorVersion;