Commit d6182ce2 authored by Rafaël Carré's avatar Rafaël Carré

dshow: build with mingw-w64

remove now meaningless very old mingw.org workarounds
(cherry picked from commit 56b02112)
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 817deca0
......@@ -1851,7 +1851,7 @@ then
AC_CHECK_HEADERS(dshow.h,
[ VLC_ADD_PLUGIN([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++)
fi
fi
......
......@@ -27,25 +27,6 @@
*****************************************************************************/
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>
typedef struct dshow_stream_t dshow_stream_t;
......
......@@ -29,27 +29,6 @@
#include <deque>
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
{
IMediaSample *p_sample;
......
......@@ -24,29 +24,30 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifndef VLC_DSHOW_H
#define VLC_DSHOW_H
#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
#ifdef __MINGW32__
# include <_mingw.h>
#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
#define VLC_DSHOW_H
#ifdef __MINGW64_VERSION_MAJOR
#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.
......@@ -374,4 +375,5 @@ DECLARE_INTERFACE_(IAMTVAudio, IUnknown)
STDMETHOD(UnRegisterNotificationCallBack) (THIS_ IAMTunerNotification*);
};
#endif /* __MINGW64_VERSION_MAJOR */
#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