Mercurial > mplayer.hg
diff loader/dshow/guids.h @ 24428:4691811bd8c7
Move AM_MEDIA_TYPE structure definition to mediatype.h.
Make inclusion of com.h and wine/*.h conditional,
this will allow reusing of mediatype.c code under MinGW
without requirement to include all remaining wine/* stuff.
author | voroshil |
---|---|
date | Thu, 13 Sep 2007 16:13:37 +0000 |
parents | 9533c26c0806 |
children | a8ea87c71d18 |
line wrap: on
line diff
--- a/loader/dshow/guids.h Thu Sep 13 15:18:57 2007 +0000 +++ b/loader/dshow/guids.h Thu Sep 13 16:13:37 2007 +0000 @@ -1,26 +1,26 @@ #ifndef DS_GUIDS_H #define DS_GUIDS_H +/* +this will be defined if <ole2.h> already included before this file +under MinGW +*/ + +#ifndef GUID_DEFINED #include "com.h" +#endif + +#ifndef VFWAPI #include "wine/module.h" #include "wine/windef.h" #include "wine/vfw.h" +#endif + +#include "mediatype.h" //#define Debug if(1) #define Debug if(0) -typedef struct __attribute__((__packed__)) _MediaType -{ - GUID majortype; //0x0 - GUID subtype; //0x10 - int bFixedSizeSamples; //0x20 - int bTemporalCompression; //0x24 - unsigned long lSampleSize; //0x28 - GUID formattype; //0x2c - IUnknown* pUnk; //0x3c - unsigned long cbFormat; //0x40 - char* pbFormat; //0x44 -} AM_MEDIA_TYPE; typedef long long REFERENCE_TIME;