Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

The enhanced video renderer (EVR) media sink can be used as a stand-alone component - IMFStreamSink ProcessSample E_NOINTERFACE error

$
0
0

Hello

I follow the instructions in (Using the EVR Media Sink) http://msdn.microsoft.com/en-us/library/aa965265(v=vs.85).aspx

and (Media Sinks) http://msdn.microsoft.com/en-us/library/ms701626(v=vs.85).aspx

'You should read the remainder of this topic if you are writing a custom media sink,or if you want to use a media sink directly without the Media Session.'

From the Sample Project 'MFCaptureToFile' , I developed a Render.cpp class to display the video in the right side of the dialog, using the Media Sink directly.

Instead of sending the Video  Samples to the Capture File, I'm sending to a Queue and then to the IMFStreamSink->ProcessSample as the Media Sink requests thru the IAsyncCallback->Invoke   MediaEventType  MEStreamSinkRequestSample.

Everything works as described in the manual except that when I call the IMFStreamSink->ProcessSample, I get an HRESULT = E_NOINTERFACE.


1. I used the MFTrace and everything is created with sucess. It also shows the E_NOINTERFACE when calling IMFStreamSink->ProcessSample .

2. The problem: no clue whatsoever about which interface causes the E_NOINTERFACE error. ==> I guess something more needs to be initialized, besides what is described in the manual.

 

Best regards


Viewing all articles
Browse latest Browse all 1079

Trending Articles