[MPlayer-dev-eng] [PATCH] fix to vdpau

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Aug 1 19:45:24 CEST 2010


On Sun, Aug 01, 2010 at 07:29:42PM +0200, Dan Oscarsson wrote:
> Attached is a small fix to vo_vdpau.c as otherwise it will set deint_mpi
> to NULL outside its size. This has existed for a long time so it does
> not crash mplayer normally.
> 
>    Dan

> --- libvo/vo_vdpau.c.org	2010-08-01 19:16:33.253938365 +0200
> +++ libvo/vo_vdpau.c	2010-08-01 19:20:41.941938475 +0200
> @@ -608,9 +608,10 @@
>          surface_render[i].surface = VDP_INVALID_HANDLE;
>      for (i = 0; i < 3; i++) {
>          deint_surfaces[i] = VDP_INVALID_HANDLE;
> -        if (i < 2 && deint_mpi[i])
> +        if (i < 2 && deint_mpi[i]) {
>              deint_mpi[i]->usage_count--;
> -        deint_mpi[i] = NULL;
> +            deint_mpi[i] = NULL;
> +        }
>      }

This code is duplicated from free_video_specific which does it right.
Even if you don't want to merge them, at least copy it 1:1.


More information about the MPlayer-dev-eng mailing list