summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-27 17:55:57 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-27 17:55:57 +0000
commit05c24134de2923762a718b4e1c31c60131d46124 (patch)
tree75bc2ec726754fc41740c27f5fb2e5f710d71d78 /libvo
parent01c5a73c5359fb71c1d394194969b1eeb55575b0 (diff)
downloadmpv-05c24134de2923762a718b4e1c31c60131d46124.tar.bz2
mpv-05c24134de2923762a718b4e1c31c60131d46124.tar.xz
Enable StructureNotifyMask before waiting for a DestroyNotify event.
Fixes hangs if OpenGL initialization fails in vo gl preinit and we call uninit while the window is still hidden. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30760 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index c0278caa42..5c21fee975 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -788,6 +788,7 @@ void vo_x11_uninit(void)
XEvent xev;
XUnmapWindow(mDisplay, vo_window);
+ XSelectInput(mDisplay, vo_window, StructureNotifyMask);
XDestroyWindow(mDisplay, vo_window);
do
{