diff options
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r-- | video/out/wayland_common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 96277551c5..533b8c056d 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -593,8 +593,10 @@ static bool create_display (struct vo_wayland_state *wl) wl->display.display = wl_display_connect(NULL); if (!wl->display.display) { - MP_ERR(wl->vo, "failed to connect to a wayland server: " - "check if a wayland compositor is running\n"); + MP_MSG(wl, wl->vo->probing ? MSGL_V : MSGL_ERR, + "failed to connect to a wayland server: " + "check if a wayland compositor is running\n"); + return false; } |