| 656 | } |
| 657 | |
| 658 | STDMETHODIMP CMpcVideoRenderer::NonDelegatingQueryInterface(REFIID riid, void** ppv) |
| 659 | { |
| 660 | CheckPointer(ppv, E_POINTER); |
| 661 | |
| 662 | IFQIRETURN(IKsPropertySet) |
| 663 | IFQIRETURN(IMFGetService) |
| 664 | IFQIRETURN(IBasicVideo) |
| 665 | IFQIRETURN(IBasicVideo2) |
| 666 | IFQIRETURN(IVideoWindow) |
| 667 | IFQIRETURN(ISpecifyPropertyPages) |
| 668 | IFQIRETURN(IVideoRenderer) |
| 669 | IFQIRETURN(IExFilterConfig) |
| 670 | if (riid == __uuidof(ISubRender) && m_VideoProcessor && m_VideoProcessor->Type() == 9) { |
| 671 | return GetInterface((ISubRender*)this, ppv); |
| 672 | } |
| 673 | if (riid == __uuidof(ISubRender11) && m_VideoProcessor && m_VideoProcessor->Type() == 11) { |
| 674 | return GetInterface((ISubRender11*)this, ppv); |
| 675 | } |
| 676 | if (riid == __uuidof(ID3DFullscreenControl) && m_bEnableFullscreenControl) { |
| 677 | return GetInterface((ID3DFullscreenControl*)this, ppv); |
| 678 | } |
| 679 | if (riid == __uuidof(ISubRenderConsumer2)) { |
| 680 | return GetInterface((ISubRenderConsumer2*)this, ppv); |
| 681 | } |
| 682 | if (riid == __uuidof(ISubRenderConsumer)) { |
| 683 | return GetInterface((ISubRenderConsumer*)this, ppv); |
| 684 | } |
| 685 | if (riid == __uuidof(ISubRenderOptions)) { |
| 686 | return GetInterface((ISubRenderOptions*)this, ppv); |
| 687 | } |
| 688 | return __super::NonDelegatingQueryInterface(riid, ppv); |
| 689 | } |
| 690 | |
| 691 | // IMediaFilter |
| 692 | STDMETHODIMP CMpcVideoRenderer::Run(REFERENCE_TIME rtStart) |