[vlc-devel] [PATCH] Direct3D: do not leak textures when recycling them

Jean-Baptiste Kempf jb at videolan.org
Thu Feb 13 12:59:38 CET 2014


Applied.

On 13 Feb, Felix Abecassis wrote :
> If several textures from the cache (i.e. used during the previous
> call) are matching we invalidate all of them but only keep the last
> one. We therefore lose all references to the other ones.
> 
> Close #10248
> ---
>  modules/video_output/msw/direct3d.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
> index 6b33bf4..7bc12c7 100644
> --- a/modules/video_output/msw/direct3d.c
> +++ b/modules/video_output/msw/direct3d.c
> @@ -1439,6 +1439,7 @@ static void Direct3DImportSubpicture(vout_display_t *vd,
>  #endif
>                  *d3dr = *cache;
>                  memset(cache, 0, sizeof(*cache));
> +		break;
>              }
>          }
>          if (!d3dr->texture) {
> -- 
> 1.7.10.4
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list