Remove ATL dependency from MSMF capture code

Use _com_ptr_t instead of CComPtr in ComPtr wrapper to avoid ATL dependency.
This commit is contained in:
Artur Wieczorek
2014-09-23 19:31:55 +02:00
parent a160158cb3
commit e3f1d722e7
2 changed files with 83 additions and 34 deletions

View File

@@ -72,6 +72,7 @@
#include <stdarg.h>
#include <string.h>
#ifdef _MSC_VER
#pragma warning(disable:4503)
#pragma comment(lib, "mfplat")
#pragma comment(lib, "mf")
@@ -81,6 +82,7 @@
#if (WINVER >= 0x0602) // Available since Win 8
#pragma comment(lib, "MinCore_Downlevel")
#endif
#endif
#include <mferror.h>
@@ -260,7 +262,7 @@ public:
#include "ppltasks_winrt.h"
#endif
#else
#include <atlbase.h>
#include <comdef.h>
#endif
struct IMFMediaType;