Mercurial > mplayer.hg
comparison libvo/vo_gl.c @ 28939:cbf56e4c9662
Check mpi type before returning an DR buffer in get_image, fixes jerkiness
with MPEG1/2 and -dr -slices
author | reimar |
---|---|
date | Mon, 16 Mar 2009 14:25:03 +0000 |
parents | 56eee6ffba9b |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
28938:605aa9eec186 | 28939:cbf56e4c9662 |
---|---|
763 "Expect a _major_ speed penalty\n"); | 763 "Expect a _major_ speed penalty\n"); |
764 err_shown = 1; | 764 err_shown = 1; |
765 return VO_FALSE; | 765 return VO_FALSE; |
766 } | 766 } |
767 if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE; | 767 if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE; |
768 if (mpi->type != MP_IMGTYPE_STATIC && mpi->type != MP_IMGTYPE_TEMP && | |
769 (mpi->type != MP_IMGTYPE_NUMBERED || mpi->number)) | |
770 return VO_FALSE; | |
768 if (mesa_buffer) mpi->width = texture_width; | 771 if (mesa_buffer) mpi->width = texture_width; |
769 else if (ati_hack) { | 772 else if (ati_hack) { |
770 mpi->width = texture_width; | 773 mpi->width = texture_width; |
771 mpi->height = texture_height; | 774 mpi->height = texture_height; |
772 } | 775 } |