MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / SetNewMediaType

Method SetNewMediaType

Source/VideoRendererInputPin.cpp:204–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void CVideoRendererInputPin::SetNewMediaType(const CMediaType& mt)
205{
206 DLog(L"CVideoRendererInputPin::SetNewMediaType()");
207
208 m_pNewMT.reset();
209 if (m_pCustomAllocator) {
210 m_pCustomAllocator->SetNewMediaType(mt);
211 } else {
212 m_pNewMT.reset(new CMediaType(mt));
213 }
214}
215
216void CVideoRendererInputPin::ClearNewMediaType()
217{

Callers 1

GetAllocatorMethod · 0.45

Calls 1

DLogFunction · 0.85

Tested by

no test coverage detected