From 4044754d24c677ed82016b5b8f3011686d7d2ff6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 2 Jan 2013 12:55:52 +0100 Subject: vo_x11, vo_xv: XShmCompletion event support This fixes OSD flicker with vo_xv at high frame rates. --- video/out/x11_common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/out/x11_common.c') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 05fae825fc..7986817f68 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -903,6 +903,11 @@ int vo_x11_check_events(struct vo *vo) Event.xclient.data.l[0] == x11->XAWM_DELETE_WINDOW) mplayer_put_key(vo->key_fifo, KEY_CLOSE_WIN); break; + default: + if (Event.type == x11->ShmCompletionEvent) + if (x11->ShmCompletionWaitCount > 0) + x11->ShmCompletionWaitCount--; + break; } } return ret; -- cgit v1.2.3