[FFmpeg-devel] recent mingw-w64 break compilation by disabling nameless unions as default

Gianluigi Tiesi mplayer at netfarm.it
Mon Sep 9 03:44:05 CEST 2013

Hi all,

recent mingw-w64 header oaidl.h that defines struct
VARIANT was updated and now it does not define anymore

as result, libavdevice/dshow.c fails to compile:

libavdevice/dshow.c: In function ‘dshow_cycle_devices’:
libavdevice/dshow.c:280:12: error: ‘VARIANT’ has no member named ‘vt’
libavdevice/dshow.c:285:36: error: ‘VARIANT’ has no member named ‘bstrVal’

defining _FORCENAMELESSUNION solves the problem.
I'm not sure it's the right solution

MPlayer exposes same problem in stream/tvi_dshow.c

I suspect they'll revert the change.


Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

More information about the ffmpeg-devel mailing list