Removed unused function pointer
The function was breaking windows 7 compatibility.
This commit is contained in:
parent
16d9104590
commit
5d96fc9b14
@ -115,8 +115,6 @@ typedef HRESULT(__stdcall* pfnMFCreateSample)(IMFSample** ppIMFSample);
|
||||
typedef HRESULT(__stdcall* pfnMFCreateMemoryBuffer)(DWORD cbMaxLength,
|
||||
IMFMediaBuffer** ppBuffer);
|
||||
typedef HRESULT(__stdcall* pfnMFCreateMediaType)(IMFMediaType** ppMFType);
|
||||
typedef HRESULT(__stdcall* pfnMFCreateDXGIDeviceManager)(UINT* pResetToken,
|
||||
IMFDXGIDeviceManager** ppDXVAManager);
|
||||
|
||||
struct _H264_CONTEXT_MF
|
||||
{
|
||||
@ -135,7 +133,6 @@ struct _H264_CONTEXT_MF
|
||||
pfnMFCreateSample MFCreateSample;
|
||||
pfnMFCreateMemoryBuffer MFCreateMemoryBuffer;
|
||||
pfnMFCreateMediaType MFCreateMediaType;
|
||||
pfnMFCreateDXGIDeviceManager MFCreateDXGIDeviceManager;
|
||||
};
|
||||
typedef struct _H264_CONTEXT_MF H264_CONTEXT_MF;
|
||||
|
||||
@ -515,12 +512,7 @@ static BOOL mf_init(H264_CONTEXT* h264)
|
||||
sys->mfplat, "MFCreateMemoryBuffer");
|
||||
sys->MFCreateMediaType = (pfnMFCreateMediaType) GetProcAddress(sys->mfplat,
|
||||
"MFCreateMediaType");
|
||||
sys->MFCreateDXGIDeviceManager = (pfnMFCreateDXGIDeviceManager) GetProcAddress(
|
||||
sys->mfplat, "MFCreateDXGIDeviceManager");
|
||||
/**
|
||||
* Note: MFCreateDXGIDeviceManager is supported starting from Windows 8.
|
||||
* Don't fail below if GetProcAddress returned NULL.
|
||||
*/
|
||||
|
||||
if (!sys->MFStartup || !sys->MFShutdown || !sys->MFCreateSample
|
||||
|| !sys->MFCreateMemoryBuffer || !sys->MFCreateMediaType)
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user