wasapi: try to satisfy both mingw and msvc

Fix-up for previous commit, hopefully.
This commit is contained in:
Tim-Philipp Müller 2018-03-18 14:11:53 +00:00
parent 9387a936b5
commit 1da3cd56a0
2 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,7 @@ GST_DEBUG_CATEGORY_EXTERN (gst_wasapi_debug);
#if defined(_MSC_VER)
#include <functiondiscoverykeys_devpkey.h>
#elif !defined(PKEY_Device_FriendlyName)
#include <initguid.h>
#include <propkey.h>
DEFINE_PROPERTYKEY (PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,
0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14);

View file

@ -25,7 +25,9 @@
#include <gst/audio/gstaudiosrc.h>
#include <gst/audio/gstaudiosink.h>
#ifdef _MSC_VER
#include <initguid.h>
#endif
#include <mmdeviceapi.h>
#include <audioclient.h>