summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-04-05 16:46:26 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-04-05 16:46:26 +0300
commitb309b60a0c7230fae29475e8924ff51f107c2563 (patch)
tree5b6723a80ef73bc314e730d6f3d7e70f4f0a1205
parentce0bf1bd4a3cc735f1a38988a6034bb48dcec2d6 (diff)
downloadmpv-b309b60a0c7230fae29475e8924ff51f107c2563.tar.bz2
mpv-b309b60a0c7230fae29475e8924ff51f107c2563.tar.xz
vo_xv: Fix context Shminfo table size
This bug could cause problems if you used -dr with xv. The most likely symptom was crash at uninit.
-rw-r--r--libvo/vo_xv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 178c9c4ca9..86257a1179 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -116,7 +116,7 @@ struct xvctx {
unsigned char *src, unsigned char *srca,
int stride);
#ifdef HAVE_SHM
- XShmSegmentInfo Shminfo[NUM_BUFFERS];
+ XShmSegmentInfo Shminfo[NUM_BUFFERS + 1];
int Shmem_Flag;
#endif
};