[MPlayer-cvslog] r28974 - trunk/libvo/vo_gl.c
reimar
subversion at mplayerhq.hu
Mon Mar 16 15:25:04 CET 2009
Author: reimar
Date: Mon Mar 16 15:25:03 2009
New Revision: 28974
Log:
Check mpi type before returning an DR buffer in get_image, fixes jerkiness
with MPEG1/2 and -dr -slices
Modified:
trunk/libvo/vo_gl.c
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c Mon Mar 16 11:29:30 2009 (r28973)
+++ trunk/libvo/vo_gl.c Mon Mar 16 15:25:03 2009 (r28974)
@@ -765,6 +765,9 @@ static uint32_t get_image(mp_image_t *mp
return VO_FALSE;
}
if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE;
+ if (mpi->type != MP_IMGTYPE_STATIC && mpi->type != MP_IMGTYPE_TEMP &&
+ (mpi->type != MP_IMGTYPE_NUMBERED || mpi->number))
+ return VO_FALSE;
if (mesa_buffer) mpi->width = texture_width;
else if (ati_hack) {
mpi->width = texture_width;
More information about the MPlayer-cvslog
mailing list