|Microsoft DirectX 9.0|
The Receive method receives the next media sample in the stream.
virtual HRESULT Receive( IMediaSample *pMediaSample );
Pointer to the sample's IMediaSample interface.
Returns S_OK if successful, or an HRESULT value indicating the cause of the error.
The input pin calls this method when it receives a sample from the upstream filter.
If the filter is running, this method performs the following steps:
If the filter is paused, the method performs the following steps:
While paused, the method waits in step 2 until the filter switches to a running state. At that point, the filter schedules the sample.
In the base class, the OnReceiveFirstSample method does nothing. The derived class can override it. For example, when a video renderer is paused, it displays the first sample as a still image.