| 492 | } |
| 493 | |
| 494 | HRESULT CMpcVideoRenderer::DoRenderSample(IMediaSample* pSample) |
| 495 | { |
| 496 | CheckPointer(pSample, E_POINTER); |
| 497 | |
| 498 | if (m_bSetNewMediaTypeToInputPin) { |
| 499 | auto inputPin = static_cast<CVideoRendererInputPin*>(m_pInputPin); |
| 500 | inputPin->ClearNewMediaType(); |
| 501 | m_bSetNewMediaTypeToInputPin = false; |
| 502 | } |
| 503 | |
| 504 | HRESULT hr = m_VideoProcessor->ProcessSample(pSample); |
| 505 | |
| 506 | if (SUCCEEDED(hr)) { |
| 507 | m_bValidBuffer = true; |
| 508 | } |
| 509 | |
| 510 | if (m_Stepping && !(--m_Stepping)) { |
| 511 | this->NotifyEvent(EC_STEP_COMPLETE, 0, 0); |
| 512 | } |
| 513 | |
| 514 | return hr; |
| 515 | } |
| 516 | |
| 517 | HRESULT CMpcVideoRenderer::Receive(IMediaSample* pSample) |
| 518 | { |
nothing calls this directly
no test coverage detected