wasapi: fix symbol redefinition build error

This commit is contained in:
Ignacio Casal Quinteiro 2019-08-06 17:42:15 +02:00 committed by Tim-Philipp Müller
parent f175b05c1d
commit 1181436545
2 changed files with 8 additions and 3 deletions

View file

@ -22,6 +22,14 @@
# include <config.h>
#endif
/* Note: initguid.h can not be included in gstwasapiutil.h, otherwise a
* symbol redefinition error will be raised.
* initguid.h must be included in the C file before mmdeviceapi.h
* which is included in gstwasapiutil.h.
*/
#ifdef _MSC_VER
#include <initguid.h>
#endif
#include "gstwasapiutil.h"
#include "gstwasapidevice.h"

View file

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