diff options
author | wm4 <wm4@nowhere> | 2014-05-28 01:07:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-28 02:08:45 +0200 |
commit | 8dfd93c6fbaa2af1f0f996072f0db52bd83ee28d (patch) | |
tree | 4b07f3f0ff0985ea20738a5739334731356ff40e /video/out/x11_common.c | |
parent | ff73d25308dece987e0ded07291054595d6bd764 (diff) | |
download | mpv-8dfd93c6fbaa2af1f0f996072f0db52bd83ee28d.tar.bz2 mpv-8dfd93c6fbaa2af1f0f996072f0db52bd83ee28d.tar.xz |
vo_vaapi: cleanup error handling on init
Close the X connection if initializing vaapi fails.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 3 |
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); |