summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wayland/meta-wayland-buffer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wayland/meta-wayland-buffer.c b/src/wayland/meta-wayland-buffer.c
index 628aeee1c..bd0a17af0 100644
--- a/src/wayland/meta-wayland-buffer.c
+++ b/src/wayland/meta-wayland-buffer.c
@@ -877,10 +877,9 @@ meta_wayland_buffer_try_acquire_scanout (MetaWaylandBuffer *buffer,
return NULL;
}
- g_return_val_if_fail (scanout, NULL);
-
- g_signal_connect (scanout, "scanout-failed",
- G_CALLBACK (on_scanout_failed), buffer);
+ if (scanout)
+ g_signal_connect (scanout, "scanout-failed",
+ G_CALLBACK (on_scanout_failed), buffer);
return scanout;
}