[MPlayer-dev-eng] [PATCH] Fix DirectX compilation error

Diego Biurrun diego at biurrun.de
Mon Oct 3 12:36:36 CEST 2011


On Mon, Oct 03, 2011 at 03:55:43AM +0200, Ingo Brückl wrote:
> In DirectX 8 and 9, member dwBackBufferCount is in an anonymous union.
> 
> MinGW complains:
> 
>   error: unknown field 'dwBackBufferCount' specified in initializer
> 
> --- libvo/vo_directx.c	(revision 34173)
> +++ libvo/vo_directx.c	(working copy)
> @@ -229,9 +229,9 @@
>          .dwHeight = image_height,
> -        .dwBackBufferCount = 2,
>      };
>      uint32_t i = 0;
> +    ddsdOverlay.dwBackBufferCount = 2;
>      while (i < NUM_FORMATS && imgfmt != g_ddpf[i].img_format)
> @@ -628,10 +628,10 @@
>          .dwHeight = 280,
> -        .dwBackBufferCount = 0,
>      };
>      uint32_t i;
>      uint32_t formatcount = 0;
> +    ddsdOverlay.dwBackBufferCount = 0;

Should be OK.

Diego


More information about the MPlayer-dev-eng mailing list