VO: don't keep a persistent X11 connection across VOs
commit5ccca31a51f80544c84449e343c650dbc5a1216b
authorwm4 <wm4@nowhere>
Fri, 3 Aug 2012 03:55:02 +0000 (3 05:55 +0200)
committerUoti Urpala <uau@mplayer2.org>
Fri, 31 Aug 2012 17:30:42 +0000 (31 20:30 +0300)
treef1a70d61291f9df1e3fa1926f0ad4309e73517cf
parentc183fbce263209bad765ad43395d9497c65cb091
VO: don't keep a persistent X11 connection across VOs

The player kept a single persistent instance of X11-related state
shared by all X-using VOs. This has no obvious benefit; even if a new
VO instance initializes a new X connection that shouldn't cause
noticeable overhead. Remove the shared instance and initialize X state
per VO. This reduces X-specific code outside the VOs using it.
libvo/video_out.c
libvo/video_out.h
libvo/vo_x11.c
libvo/vo_xv.c
libvo/x11_common.c
mp_core.h
mplayer.c