Add support for compiling under MinGW + fix Windows compiling in general

This commit is contained in:
wuggy 2026-04-17 15:05:11 -07:00
commit a5cf494890
56 changed files with 243 additions and 76 deletions

View file

@ -20,7 +20,7 @@
#include "nsPrintfCString.h"
#include "VideoUtils.h"
const CLSID CLSID_VideoProcessorMFT =
const CLSID sCLSID_VideoProcessorMFT =
{
0x88753b26,
0x5b24,
@ -666,7 +666,7 @@ D3D11DXVA2Manager::Init(layers::KnowsCompositor* aKnowsCompositor,
}
mTransform = new MFTDecoder();
hr = mTransform->Create(CLSID_VideoProcessorMFT);
hr = mTransform->Create(sCLSID_VideoProcessorMFT);
if (!SUCCEEDED(hr)) {
aFailureReason = nsPrintfCString("MFTDecoder::Create(CLSID_VideoProcessorMFT) failed with code %X", hr);
return hr;

View file

@ -18,6 +18,7 @@ which makes Windows Media Foundation unavailable.
#undef WINVER
#define WINVER _WIN32_WINNT_WIN7
#include <stdlib.h>
#include <windows.h>
#include <mfapi.h>
#include <mfidl.h>