Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,8 @@ HRESULT EVRCustomPresenter::CreateOptimalVideoType(IMFMediaType* pProposedType,

// Helper object to manipulate the optimal type.
VideoType mtOptimal;

mtOptimal.CreateEmptyType();

// Clone the proposed type.
CHECK_HR(hr = mtOptimal.CopyFrom(pProposedType));

Expand Down Expand Up @@ -2415,4 +2416,4 @@ HRESULT SetMixerSourceRect(IMFTransform *pMixer, const MFVideoNormalizedRect& nr
return hr;
}

#pragma warning( pop )
#pragma warning( pop )
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ BOOL APIENTRY DllMain( HANDLE hModule,
return TRUE;
}

STDAPI CreateEVRCustomPresenter(REFIID riid, void** ppvObject)
{
return EVRCustomPresenter::CreateInstance(NULL, riid, ppvObject);
}

STDAPI DllCanUnloadNow()
{
if (!ClassFactory::IsLocked())
Expand Down