summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 6ca8be01f2..6159cb8ddc 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -585,7 +585,8 @@ static void vo_x11_classhint(struct vo *vo, Window window, const char *name)
void vo_x11_uninit(struct vo *vo)
{
struct vo_x11_state *x11 = vo->x11;
- assert(x11);
+ if (!x11)
+ return;
mp_input_put_key(vo->input_ctx, MP_INPUT_RELEASE_ALL);