mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Add support for compiling under MinGW + fix Windows compiling in general
This commit is contained in:
parent
e3a45c193c
commit
a5cf494890
56 changed files with 243 additions and 76 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue