Commit 56b02112 authored by Rafaël Carré's avatar Rafaël Carré

dshow: build with mingw-w64

remove now meaningless very old mingw.org workarounds
parent bb7509af
...@@ -1774,7 +1774,7 @@ then ...@@ -1774,7 +1774,7 @@ then
AC_CHECK_HEADERS(dshow.h, AC_CHECK_HEADERS(dshow.h,
[ VLC_ADD_PLUGIN([dshow]) [ VLC_ADD_PLUGIN([dshow])
VLC_ADD_CXXFLAGS([dshow],[]) VLC_ADD_CXXFLAGS([dshow],[])
VLC_ADD_LIBS([dshow],[-lole32 -loleaut32 -luuid]) ]) VLC_ADD_LIBS([dshow],[-lole32 -loleaut32 -luuid -lstrmiids -lksuser])])
AC_LANG_POP(C++) AC_LANG_POP(C++)
fi fi
fi fi
......
...@@ -27,25 +27,6 @@ ...@@ -27,25 +27,6 @@
*****************************************************************************/ *****************************************************************************/
using namespace std; using namespace std;
#ifndef _MSC_VER
# include <wtypes.h>
# include <unknwn.h>
# include <ole2.h>
# include <limits.h>
# ifdef _WINGDI_
# undef _WINGDI_
# endif
# define _WINGDI_ 1
# define AM_NOVTABLE
# define _OBJBASE_H_
# undef _X86_
# ifndef _I64_MAX
# define _I64_MAX LONG_LONG_MAX
# endif
# define LONGLONG long long
#endif
#include "vlc_dshow.h"
#include <dshow.h> #include <dshow.h>
typedef struct dshow_stream_t dshow_stream_t; typedef struct dshow_stream_t dshow_stream_t;
......
...@@ -29,27 +29,6 @@ ...@@ -29,27 +29,6 @@
#include <deque> #include <deque>
using namespace std; using namespace std;
#ifndef _MSC_VER
# include <wtypes.h>
# include <unknwn.h>
# include <ole2.h>
# include <limits.h>
# ifdef _WINGDI_
# undef _WINGDI_
# endif
# define _WINGDI_ 1
# define AM_NOVTABLE
# define _OBJBASE_H_
# undef _X86_
# ifndef _I64_MAX
# define _I64_MAX LONG_LONG_MAX
# endif
# define LONGLONG long long
#endif
#include <dshow.h>
#include "vlc_dshow.h"
typedef struct VLCMediaSample typedef struct VLCMediaSample
{ {
IMediaSample *p_sample; IMediaSample *p_sample;
......
...@@ -24,29 +24,30 @@ ...@@ -24,29 +24,30 @@
/***************************************************************************** /*****************************************************************************
* Preamble * Preamble
*****************************************************************************/ *****************************************************************************/
#ifndef VLC_DSHOW_H
#define VLC_DSHOW_H
#ifndef _MSC_VER #ifdef __MINGW32__
# include <wtypes.h> # include <_mingw.h>
# include <unknwn.h>
# include <ole2.h>
# include <limits.h>
# ifdef _WINGDI_
# undef _WINGDI_
# endif
# define _WINGDI_ 1
# define AM_NOVTABLE
# define _OBJBASE_H_
# undef _X86_
# ifndef _I64_MAX
# define _I64_MAX LONG_LONG_MAX
# endif
# define LONGLONG long long
#endif #endif
#include <dshow.h> #include <wtypes.h>
#include <unknwn.h>
#include <ole2.h>
#include <limits.h>
#include <strmif.h>
#include <ksmedia.h>
#include <ddraw.h>
#ifndef VLC_DSHOW_H #ifdef __MINGW64_VERSION_MAJOR
#define VLC_DSHOW_H
#if __MINGW64_VERSION_MAJOR < 3
DEFINE_GUID(MEDIASUBTYPE_I420,0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);
#endif
#else /* !__MINGW64_VERSION_MAJOR */
#include <dshow.h>
/***************************************************************************** /*****************************************************************************
* DirectShow GUIDs. * DirectShow GUIDs.
...@@ -374,4 +375,5 @@ DECLARE_INTERFACE_(IAMTVAudio, IUnknown) ...@@ -374,4 +375,5 @@ DECLARE_INTERFACE_(IAMTVAudio, IUnknown)
STDMETHOD(UnRegisterNotificationCallBack) (THIS_ IAMTunerNotification*); STDMETHOD(UnRegisterNotificationCallBack) (THIS_ IAMTunerNotification*);
}; };
#endif /* __MINGW64_VERSION_MAJOR */
#endif /* VLC_DSHOW_H */ #endif /* VLC_DSHOW_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment